Jump to content

setVehicleHandling


fairyoggy

Recommended Posts

function enterVehicle ( theVehicle, seat, speed)
	local id = getElementModel(theVehicle)
	local myCar = getPedOccupiedVehicle(source)
		if id == 411 then
		setVehicleHandling(myCar,"maxVelocity",tonumber(400))
		end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle )

Infernus car accelerates to 199 km/h but i need more how to do it?

How to make the car pick up speed higher than it should be? 

Using this code, I could limit it to a certain point; everything worked, but how to make it higher than what is allowed?

I also noticed that the restrictions do not work on boats, why? How limit the speed of boats?

 

Link to comment
10 minutes ago, slapztea said:

How to make the car pick up speed higher than it should be? 

Hello slapztea,

I think you want to increase the "engineAcceleration" vehicle handling property. Please take a look at this wiki page.

Sadly I don't know about boats. Maybe speed limit for boats is not implemented in GTA:SA?

Edited by The_GTA
  • Like 1
Link to comment
14 minutes ago, The_GTA said:

Hello slapztea,

I think you want to increase the "engineAcceleration" vehicle handling property. Please take a look at this wiki page.

Sadly I don't know about boats. Maybe speed limit for boats is not implemented in GTA:SA?

solved. thanks you.

BUT question about boats is relevant. Maybe someone knows

Edited by slapztea
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...