Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507

Notice: Failed to invoke Pygments: [Called from MediaWiki\SyntaxHighlight\SyntaxHighlight::highlightInner in /home/pi/www/gtac/wiki/wiki/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 334] in /home/pi/www/gtac/wiki/wiki/includes/debug/MWDebug.php on line 507
natives.DRAW_SPHERE - GTA Connected

natives.DRAW_SPHERE

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.DRAW_SPHERE(Vec3 position, float radius)
The natives.DRAW_SPHERE function is used to Draw a solid sphere at a specific world position in Vice City.

Parameters

1) Vec3 position World coordinates where the sphere is drawn (x, y, z).
2) float radius Sphere radius/size.

Return

void This function doesn't return a value.

Notes

  • The sphere is rendered in a default pink color and does not accept custom RGB values.

Examples

Example 1 - JavaScript:

addEventHandler("OnDrawnHUD", function() {
    natives.DRAW_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
});

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

    gta.createSphere