Jump to content

Vehicle blow


Xwad

Recommended Posts

  • Moderators

You can cancel the bullet explosion like this:

addEventHandler("onClientExplosion",root, 
function (x,y,z,explosionType) 
    if source == localPlayer and explosionType == 10 then 
        local vehicle = getPedOccupiedVehicle(localPlayer) 
        if vehicle and getElementMode(vehicle) == 432 then 
            cancelEvent() 
        end 
    end 
end)     

But how you want to check if it hits an object is up to you.

Link to comment

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...