Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. function spawnVehicles (thePlayer, commandName, carName, carID)
  2.     local x, y, z = getElementPosition(thePlayer)
  3.     local carModel = getVehicleModelFromName ( carName )
  4.     local id = getVehicleNameFromID (carName)
  5.     local carModel2 = getVehicleModelFromName(id)
  6.     if carModel then
  7.         createVehicle(carModel, x+2, y, z+1)
  8.     elseif carModel2 then
  9.         createVehicle(carModel2, x+2, y, z+1)
  10.     elseif not carModel or carModel2 then
  11.         outputChatBox("Szarul írtad be az autónevet te seggfej!", thePlayer)
  12.     end
  13. end
  14. addCommandHandler("cv", spawnVehicles)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement