Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function removeJobVehicle(player)
- local jobID = tonumber(getElementData(player, "Char->job"))
- -- for i = 1, 15 do
- if jobVehicles[player] then
- -- outputChatBox("JobVehicle: remove : " .. getPlayerName(player))
- local attachedElements = getAttachedElements(jobVehicles[player])
- for i,v in ipairs(attachedElements) do
- for i,v in ipairs(getAttachedElements(v)) do
- detachElements(v, jobVehicles[player])
- destroyElement(v)
- end
- detachElements(v, jobVehicles[player])
- destroyElement(v)
- end
- destroyElement(jobVehicles[player])
- jobVehicles[player] = nil
- -- outputChatBox("JobVehicle: remove : " .. getPlayerName(player))
- if isTimer(removeTimer[player]) then
- killTimer(removeTimer[player])
- removeTimer[player] = nil
- end
- outputChatBox("[Munka-Jármű] #ffffffJárműved törlésre került!", player, 205, 55, 55, true)
- return
- end
- -- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement