Jump to content

Default Wheel


JunkDealer

Recommended Posts

ty for help. I tried this but it doesn't work.

function remWheel ( sourcePlayer ) 
    theVehicle = getPlayerOccupiedVehicle ( sourcePlayer ) 
    if ( theVehicle ) then 
        removeVehicleUpgrade ( theVehicle, 1085 ) 
    end 
end 

I did this, started map (with map 1085 id wheel is coming) but nothing changed. Can you tell me more wide?

Link to comment

Maybe the upgrades are being applied after, try this:

addEvent ( "onRaceStateChanging", true ) 
addEventHandler ( "onRaceStateChanging", root, 
    function ( state ) 
        if ( state == "GridCountdown" ) then 
            for _, player in ipairs ( getElementsByType ( "player" ) ) do 
                local theVehicle = getPlayerOccupiedVehicle ( player ) 
                if ( theVehicle ) then 
                    removeVehicleUpgrade ( theVehicle, 1085 ) 
                end 
            end 
        end 
    end 
) 

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