natives.ADD SPHERE: Difference between revisions

(Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.DRAW_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 = a...")
 
(Add ScriptItem documentation from GTA VC SCM decompile)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|side = client
|games = vc
|games = vc
|type = function
|type = function
|name = natives.DRAW_SPHERE
|name = natives.ADD_SPHERE
|parameters = Vec3 position, float radius
|arg1 = float entity Entity handle.
|parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z)
|desc = add sphere in Vice City
|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
|return1 = void
|returnFail1 = void
|exampleJS = addEventHandler("OnDrawnHUD", function() {
    natives.DRAW_SPHERE(new Vec3(-592.0, 670.0, 11.0), 2.0)
});
}}
}}

Latest revision as of 18:20, 13 June 2026

Function Client Only icon-vc.png Online and Offline

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

Parameters

1) float entity Entity handle.

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

    gta.createSphere