7,072
edits
m (Mex moved page Ped.warpIntoVehicle to ped.warpIntoVehicle) |
No edit summary |
||
| Line 10: | Line 10: | ||
|returnFail1 = void | |returnFail1 = void | ||
|usage = put the ped in/on a vehicle | |usage = put the ped in/on a vehicle | ||
|exampleJSSS = addCommandHandler("warp", (command, text, client) => | |||
{ | |||
if (!client.player) | |||
return; | |||
if (text.length == 0) | |||
return; | |||
let vehicleId = parseInt(text); | |||
if (isNaN(vehicleId)) | |||
return; | |||
client.player.warpIntoVehicle(vehicleId, 0); | |||
}); | |||
|exampleJSCS = addCommandHandler("warp", (command, text) => | |||
{ | |||
if (!localClient.player) | |||
return; | |||
if (text.length == 0) | |||
return; | |||
let vehicleId = parseInt(text); | |||
if (isNaN(vehicleId)) | |||
return; | |||
localClient.player.warpIntoVehicle(vehicleId, 0); | |||
}); | |||
}} | }} | ||
edits