Jump to content

Changing coordinates of BaseVihicle


etomarat

Recommended Posts

Hello! Is there any way to change the coordinates of the car?
I tried (server-side) it doesnt work:

 
local vehicle = getVehicleById(vehicleId)

local oX = vehicle:getX()

local oY = vehicle:getY()

vehicle:setPhysicsActive(false)

vehicle:setX(oX - xDif)

vehicle:setY(oY - yDif)

ehicle:setPhysicsActive(true)

Edited by etomarat
Link to comment
Share on other sites

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
×
×
  • Create New...