drawMarkerSphere
DRAW_MARKER_SPHERE0x799017F9E3B10112The GTA V native DRAW_MARKER_SPHERE of the GRAPHICS namespace, as LS:MP client scripts call it: the global function drawMarkerSphere, in JavaScript and in Lua.
drawMarkerSphere(
x: number,
y: number,
z: number,
radius: number,
red: number,
green: number,
blue: number,
alpha: number
): voiddrawMarkerSphere(
x: number,
y: number,
z: number,
radius: number,
red: integer,
green: integer,
blue: integer,
alpha: number
)Usage
JavaScript
drawMarkerSphere(x, y, z, radius, red, green, blue, alpha);Lua
drawMarkerSphere(x, y, z, radius, red, green, blue, alpha)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
drawMarkerSphere(pos, radius, red, green, blue, alpha);Lua · with vectors
drawMarkerSphere(pos, radius, red, green, blue, alpha)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
z | float | number | number |
radius | float | number | number |
red | int | number | integer |
green | int | number | integer |
blue | int | number | integer |
alpha | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Draws a 3D sphere, typically seen in the GTA:O freemode event "Penned In".
Example: https://i.imgur.com/nCbtS4H.png
alpha - The alpha for the sphere. Goes from 0.0 to 1.0.
Reference
- Namespace
- Graphics GRAPHICS
- In the game
void DRAW_MARKER_SPHERE(float x, float y, float z, float radius, int red, int green, int blue, float alpha)- Hash
0x799017F9E3B10112- Introduced
- Game build 463 legacy numbering
- Formerly
_DRAW_SPHERE