Jump to content

make vehicle indestructible


tiesjan

Recommended Posts

Posted

i want to make a commands like /neverblow to make your current vehicle indestructible but i don't know how and i can't find it in the wiki either..

the function is SetVehicleDamageProof

please help or add a good example

Posted
addCommandHandler("neverblow", function(player, cmd) 
if not isPedInVehicle ( player ) then return end 
local veh = getPedOccupiedVehicle(player) 
if not veh then return end 
setVehicleDamageProof ( veh, true ) 
end) 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...