Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Citizen.CreateThread(function()
  2.  
  3. while true do
  4. Wait(0)
  5. playerPed = GetPlayerPed(-1)
  6. vehicle = GetVehiclePedIsUsing(playerPed)
  7. if GetEntityModel(vehicle) == GetHashKey("firetruk2") or GetEntityModel(vehicle) == GetHashKey("firetruk3") then
  8. SetEntityInvincible(vehicle, true)
  9. SetEntityCanBeDamaged(vehicle, false)
  10. SetVehicleExplodesOnHighExplosionDamage(vehicle, false)
  11. SetVehicleCanBeVisiblyDamaged(vehicle, false)
  12. SetVehicleTyresCanBurst(vehicle, false)
  13. SetVehicleStrong(vehicle, true)
  14. else
  15. SetEntityCanBeDamaged(vehicle, false)
  16. SetVehicleExplodesOnHighExplosionDamage(vehicle, false)
  17. SetVehicleCanBeVisiblyDamaged(vehicle, true)
  18. SetVehicleTyresCanBurst(vehicle, true)
  19. SetVehicleStrong(vehicle, false)
  20. end
  21. end
  22.  
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement