gta.createObject: Difference between revisions

no edit summary
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = gta.createObject
|side = shared
|type = function
|type = function
|name = gta.createObject
|games = iii vc sa iv
|parametersSS = int model, Vec3 position
|desc = create a visual object for the local client
|parametersCS = int model
|arg1 = int model The model ID for the object.
|parameter1 = int model The model ID for the object.
|arg2 = Vec3 position The 3D position for the object. Server only.
|parameter2 = Vec3 position The 3D position for the object. Server only.
|return = Object an object representing the visual game object that was created
|usage = create a visual object for the local client
|freturn = null n/a
|returnTypes = Object
|note = '''gta.createObject''' doesn't function properly on the client.
|returnInfo = an object representing the visual game object that was created
|previousName = game.createObject 1.0.71
|returnFail1 = null n/a
|bcMaxVersion = 1.0.71
|bcName = game.createObject
|notes = '''gta.createObject''' doesn't function properly on the client.
|exampleLua = object = gta.createObject(1335, Vec3(1062.316, -662.653, 14.652))
|exampleLua = object = gta.createObject(1335, Vec3(1062.316, -662.653, 14.652))
if object ~= nil then
if object ~= nil then
6,834

edits