gta.createVehicle: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 14: Line 14:
|bcName = game.createVehicle
|bcName = game.createVehicle
|notes = Use the [[addToWorld|addToWorld]] function afterwards to add the vehicle to the players games.
|notes = Use the [[addToWorld|addToWorld]] function afterwards to add the vehicle to the players games.
|exampleJSSS = addCommandHandler("vehicle", function(command, parameters, client) {
    var model = parseInt(parameters);
    var vehicle = gta.createVehicle(model, client.player.position);
    addToWorld(vehicle);
});
|exampleJSCS = addCommandHandler("vehicle", function(command, parameters) {
    var model = parseInt(parameters);
    var vehicle = gta.createVehicle(model, localPlayer.position);
    addToWorld(vehicle);
});
}}
}}
2,591

edits