Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------
- --- Made by Keksking---
- ---------------------------------
- function VehicleCreator( thePlayer, command, vehicleID )
- if (getPlayerMoney(thePlayer) >= 1250) then
- if tonumber( vehicleID ) then
- local x, y, z = getElementPosition( thePlayer )
- local vehicleElement = createVehicle( vehicleID, x, y, z )
- warpPedIntoVehicle( thePlayer, vehicleElement )
- takePlayerMoney(thePlayer, 1250)
- outputChatBox("#15B01F[Hinweis] #FFFFFFViel Spaß mit deinem Fahrzeug.\n Wenn du es verschrottest, bekommst du etwas Geld zurück!", thePlayer, 255, 255, 255, true)
- else
- outputChatBox("#ED1C1C[Fehler] #FFFFFFDas Fahrzeug existiert nicht", thePlayer, 255, 255, 255, true)
- end
- else
- outputChatBox("#ED1C1C[Fehler] #FFFFFFEin Fahrzeug zu erstellen kostet: 1250$!", thePlayer, 255, 255, 255, true)
- end
- end
- end
- addCommandHandler("veh", VehicleCreator)
Advertisement
Add Comment
Please, Sign In to add comment