Native referenceFiveM

_DRAW_SPHERE

0x799017F9E3B10112 GRAPHICS
FUNCTION SIGNATURE
void _DRAW_SPHERE(float x, float y, float z, float radius, int r, int g, int b, float opacity);
Property Value
Native Name _DRAW_SPHERE
Hash 0x799017F9E3B10112
Return Type void
Parameters x (float), y (float), z (float), radius (float), r (int), g (int), b (int), opacity (float)

Description: Draws a 3D sphere, typically seen in the GTA:O freemode event "Penned In".

Example:

DrawSphere(35.45, 172.66, 126.22, 1.0, 0, 0, 255, 0.2)

Parameters

  • x (float) — X coordinate of the sphere
  • y (float) — Y coordinate of the sphere
  • z (float) — Z coordinate of the sphere
  • radius (float) — Size of the sphere, 1.0 = 1 meter
  • r (int) — Color red 0-255
  • g (int) — Color green 0-255
  • b (int) — Color blue 0-255
  • opacity (float) — Opacity from 0.0-1.0
Back to GRAPHICS