6,834
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ScriptItem2 | ||
| | |name = gta.createObject | ||
|side = shared | |||
|type = function | |type = function | ||
| | |games = iii vc sa iv | ||
| | |desc = create a visual object for the local client | ||
|arg1 = int model The model ID for the object. | |||
| | |arg2 = Vec3 position The 3D position for the object. Server only. | ||
| | |return = Object an object representing the visual game object that was created | ||
| | |freturn = null n/a | ||
|note = '''gta.createObject''' doesn't function properly on the client. | |||
|previousName = game.createObject 1.0.71 | |||
| | |||
| | |||
|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 |
edits