Guest User

Untitled

a guest
Jun 24th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. addEvent("wylacz_silnik",true)
  2. addEventHandler("wylacz_silnik",resourceRoot,
  3.     function(veh)
  4.         if veh and isElement(veh) then
  5.             setVehicleEngineState(veh,false)
  6.             local plr=getVehicleController(veh)
  7.             if plr and isElement(plr) then
  8.                 exports["es-komunikaty"]:komunikat("Silnik gaśnie.",plr)
  9.             end
  10.         end
  11.     end
  12. )
  13.  
  14. addEventHandler("onResourceStart",resourceRoot,
  15.     function()
  16.         exports["es-gieldy"]:restartGieldy(root)
  17.     end
  18. )
Add Comment
Please, Sign In to add comment