Sign in to follow this  

Getting position of "ped_frontseat"?

Recommended Posts

Hi all,

I'm trying to use getVehicleComponentPosition() to move the driver's position for making middle-/right-seating vehicles.

But the problem is that the getVehicleComponentPosition(vehicle, "ped_frontseat") returns false twice instead of x and y, and nil instead of z.

That works fine with etVehicleComponentPosition(vehicle, "door_lf_dummy")

local vehicle = getPedOccupiedVehicle(localPlayer)

local cx, cy, cz = getVehicleComponentPosition(vehicle, "door_lf_dummy") -- works fine

local csx, csy, csz = getVehicleComponentPosition(vehicle, "ped_frontseat") -- returns false, false, nil

I've even tried to move ped_frontseat to a 'chasis'-container in the vehicle's model, but it doesn't cause any positive result.

Somebody please tell me if it is possible to solve.

Edited by maximumdrive

Share this post

Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.