Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Citizen.CreateThread(function()
- while true do
- Wait(0)
- playerPed = GetPlayerPed(-1)
- vehicle = GetVehiclePedIsUsing(playerPed)
- if GetEntityModel(vehicle) == GetHashKey("firetruk2") or GetEntityModel(vehicle) == GetHashKey("firetruk3") then
- SetEntityInvincible(vehicle, true)
- SetEntityCanBeDamaged(vehicle, false)
- SetVehicleExplodesOnHighExplosionDamage(vehicle, false)
- SetVehicleCanBeVisiblyDamaged(vehicle, false)
- SetVehicleTyresCanBurst(vehicle, false)
- SetVehicleStrong(vehicle, true)
- else
- SetEntityCanBeDamaged(vehicle, false)
- SetVehicleExplodesOnHighExplosionDamage(vehicle, false)
- SetVehicleCanBeVisiblyDamaged(vehicle, true)
- SetVehicleTyresCanBurst(vehicle, true)
- SetVehicleStrong(vehicle, false)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement