ScriptingExamples/AddObject: Difference between revisions

m
Removed 'addToWorld()' function invoke as the webpage for 'addToWorld()' (https://wiki.gtaconnected.com/addToWorld) states that it no longer needs to be invoked.
No edit summary
 
m (Removed 'addToWorld()' function invoke as the webpage for 'addToWorld()' (https://wiki.gtaconnected.com/addToWorld) states that it no longer needs to be invoked.)
 
Line 22: Line 22:
var model = parseInt(parameters);
var model = parseInt(parameters);
var object = gta.createObject(model, client.player.position);
var object = gta.createObject(model, client.player.position);
addToWorld(object);
}
}
});}}
});}}
14

edits