Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cmd_VehicleSpawn(thePlayer, command, commandText)
- if (commandText == nil) then
- outputChatBox ( " Użyj #DD0000/v [id pojazdu]#FF0000.", thePlayer, 255, 0, 0, true )
- return
- end
- if tonumber(commandText)<400 or tonumber(commandText)>611 then
- outputChatBox ( " Podałeś nieprawidłowe id pojazdu. #DD0000400-611#FF0000.", thePlayer, 255, 0, 0, true )
- return
- end
- local x,y,z = getElementPosition(thePlayer) -- pobierz pozycję gracza
- x = x + 5
- local theVehicle = createVehicle(tonumber(commandText),x,y,z)
- local vehicleName = getVehicleName ( theVehicle )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement