addEvent("stopPraca", true) addEventHandler("stopPraca", resourceRoot, function() local pracaPojazd = getPedOccupiedVehicle(localPlayer) if pracaPojazd then destroyElement(pracaPojazd) playSoundFrontEnd(1) end end) addEvent("niszczPojazd", true) addEventHandler("niszczPojazd",resourceRoot,function(veh) if pracaPojazd and isElement(pracaPojazd) then destroyElement(pracaPojazd) playSoundFrontEnd(1) end end)