Jump to content

Blowing Vehicles Fix


Benevolence

Recommended Posts

Alright I got help from Solidsnake and another thread (but they didn't specifically say how to fix it in the thread) to fix it so here's how to do it.

If you use the valhalla RP scripts, it will be in vehicle-system resource then s_vehicle_system.lua

Then find

function checkWaterVehicles() 
    for key, value in ipairs(exports.pool:getPoolElementsByType("vehicle")) do 
        if (isElementInWater(value) and not isVehicleBlown(value) and getVehicleType" class="kw2">getVehicleType" class="kw2">getVehicleType" class="kw2">getVehicleType" class="kw2">getVehicleType" class="kw2">getVehicleType(value)~="Boat") then 
            blowVehicle(value) 
        end 
    end 
end 
setTimer(checkWaterVehicles, 600000, 0) 
  
  

This needs to be removed/commented. I would prefer commenting it, so just add -- in the same line next to setTimer so --setTimer and then it will be commented and the function won't be triggered so the vehicles won't blow up.

Example

--setTimer(checkWaterVehicles, 600000, 0) 

Cheers 8)

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