maximumdrive Posted October 24, 2018 Posted October 24, 2018 (edited) 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 October 24, 2018 by maximumdrive
^iiEcoo'x_) Posted October 24, 2018 Posted October 24, 2018 @maximumdrive https://wiki.multitheftauto.com/wiki/Vehicle_Components NOTES: Unknown Component is all that what give "false" when i try move it. Changing wheel position on Z axis doesn't work.
maximumdrive Posted October 25, 2018 Author Posted October 25, 2018 11 hours ago, #_iMr,[E]coo said: @maximumdrive https://wiki.multitheftauto.com/wiki/Vehicle_Components NOTES: Unknown Component is all that what give "false" when i try move it. Changing wheel position on Z axis doesn't work. Thanks, I don't know why I haven't noticed that moment... So the right-steering scripting idea seems to be impossible
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now