natives.ADD SPHERE: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
(Add ScriptItem documentation from GTA VC SCM decompile)
Line 4: Line 4:
|type = function
|type = function
|name = natives.ADD_SPHERE
|name = natives.ADD_SPHERE
|parameters = Vec3 position, float radius
|parameters = float arg0
|parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z)
|parameter1 = float arg0 Description
|parameter2 = float radius Sphere radius/size
|usage = add sphere in Vice City
|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
|return1 = void
|returnFail1 = void
|returnFail1 = void
|exampleJS = addEventHandler("OnDrawnHUD", function() {
    natives.ADD_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
});
}}
}}

Revision as of 11:40, 13 June 2026

Function Client Only icon-vc.png Online and Offline

Available since Client 1.0.0
void natives.ADD_SPHERE(float arg0)
The natives.ADD_SPHERE function is used to add sphere in Vice City.

Parameters

1) float arg0 Description.

Return

void This function doesn't return a value.

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Client Related

GTAIII Logo.png icon-vc.png gta.createSphere