Jump to content

help please


joedajoester

Recommended Posts

Posted

Hi, this doesnt work i get no error.

function Break 
    local player = getPlayerFromName("joedajoester") 
    local vehicle = getPedOccupiedVehicle(player) 
    handlingSetBrakeDeceleration(vehicle, 0.08) 
addCommandHandler ( "break", Break ) 
end 

Posted
function Break(player) 
    if (not isPedInVehicle(player)) then return end 
    local vehicle = getPedOccupiedVehicle(player) 
    handlingSetBrakeDeceleration(vehicle, 0.08) 
end 
addCommandHandler ( "break", Break ) 

Posted

I think that function got removed, setVehicleHandling should do the same job though.

function Break(player) 
    if (not isPedInVehicle(player)) then return end 
    local vehicle = getPedOccupiedVehicle(player) 
    setVehicleHandling(vehicle, "brakeDeceleration", 0.08) 
end 
addCommandHandler ( "break", Break ) 

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