Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventHandler("onClientVehicleDamage", root,
- function(_,_,loss)
- if (getElementDimension(source)~=9) then
- local hp=getElementHealth(source)
- hp=hp-loss
- if (hp<300) then
- cancelEvent()
- setElementHealth(source, 300)
- if getVehicleEngineState(source) then
- triggerServerEvent("wylacz_silnik",resourceRoot,source)
- end
- end
- end
- end
- )
- -- gdy pojazd leży na dachu i się pali to wybucha -- zablokowane w zasobie es_interfejs_pojazdow/interfejs_c.lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement