Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. function removeJobVehicle(player)
  2. local jobID = tonumber(getElementData(player, "Char->job"))
  3. -- for i = 1, 15 do
  4. if jobVehicles[player] then
  5. -- outputChatBox("JobVehicle: remove : " .. getPlayerName(player))
  6. local attachedElements = getAttachedElements(jobVehicles[player])
  7. for i,v in ipairs(attachedElements) do
  8. for i,v in ipairs(getAttachedElements(v)) do
  9. detachElements(v, jobVehicles[player])
  10. destroyElement(v)
  11. end
  12. detachElements(v, jobVehicles[player])
  13. destroyElement(v)
  14. end
  15. destroyElement(jobVehicles[player])
  16. jobVehicles[player] = nil
  17. -- outputChatBox("JobVehicle: remove : " .. getPlayerName(player))
  18. if isTimer(removeTimer[player]) then
  19. killTimer(removeTimer[player])
  20. removeTimer[player] = nil
  21. end
  22. outputChatBox("[Munka-Jármű] #ffffffJárműved törlésre került!", player, 205, 55, 55, true)
  23. return
  24. end
  25. -- end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement