Guest User

Untitled

a guest
May 17th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.90 KB | None | 0 0
  1. ---------------------------------
  2. --- Made by Keksking---
  3. ---------------------------------
  4.  
  5. function VehicleCreator( thePlayer, command, vehicleID )
  6.         if (getPlayerMoney(thePlayer) >= 1250) then
  7.             if tonumber( vehicleID ) then
  8.                 local x, y, z = getElementPosition( thePlayer )
  9.                 local vehicleElement = createVehicle( vehicleID, x, y, z )
  10.                 warpPedIntoVehicle( thePlayer, vehicleElement )
  11.                 takePlayerMoney(thePlayer, 1250)
  12.                 outputChatBox("#15B01F[Hinweis] #FFFFFFViel Spaß mit deinem Fahrzeug.\n Wenn du es verschrottest, bekommst du etwas Geld zurück!", thePlayer, 255, 255, 255, true)
  13.             else
  14.                 outputChatBox("#ED1C1C[Fehler] #FFFFFFDas Fahrzeug existiert nicht", thePlayer, 255, 255, 255, true)
  15.             end
  16.         else
  17.             outputChatBox("#ED1C1C[Fehler] #FFFFFFEin Fahrzeug zu erstellen kostet: 1250$!", thePlayer, 255, 255, 255, true)
  18.         end
  19.     end
  20. end
  21. addCommandHandler("veh", VehicleCreator)
Advertisement
Add Comment
Please, Sign In to add comment