Jump to content

Need help with setVehicleHandling


ESKADIVI

Recommended Posts

Posted (edited)

Heyy, want to have that all cars which Player occupie will get handling from Elegy.

function swapCars()
  local dummyVehicle = createVehicle(562, 497, -2439, 13)
  local playerVehicle = getPedOccupiedVehicle(localPlayer)
  
  if (dummyVehicle and playerVehicle) then
    local tblHandling = getVehicleHandling(dummyVehicle)

    if (tblHandling) then
      for k, v in pairs(tblHandling) do
        setVehicleHandling(playerVehicle, k, v)
      end
    end
  end
end
addEventHandler("onClientResourceStart", root, swapCars)

And nothing changed, also tried to just

setVehicleHandling(playerVehicle, "maxVelocity", 600.0)
  setVehicleHandling(playerVehicle, "engineAcceleration", 180.0 )

and same nothing really happend.

Edited by ESKADIVI

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