natives.ADD SPHERE: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
No edit summary
 
Line 1: Line 1:
 
{{ScriptItem
|endpoint = client
|games = vc
|type = function
|name = natives.ADD_SPHERE
|parameters = Vec3 position, float radius
|parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z)
|parameter2 = float radius Sphere radius/size
|usage = Draw a solid sphere at a specific world position in Vice City
|notes = The sphere is rendered in a default pink color and does not accept custom RGB values.
|return1 = void
|returnFail1 = void
|exampleJS = addEventHandler("OnDrawnHUD", function() {
    natives.ADD_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
});
}}

Latest revision as of 02:58, 27 November 2025

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0

void natives.ADD_SPHERE(Vec3 position, float radius)

The natives.ADD_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.ADD_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)

});

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

icon-iii.png icon-vc.png gta.createSphere