addCommandHandler("vcp",
function()
local theVeh = getPedOccupiedVehicle(localPlayer)
local x, y, z = getVehicleComponentPosition(theVeh, "wheel_rf_dummy")
setVehicleComponentPosition(theVeh, "wheel_rf_dummy", x+0.15, y, z)
local x, y, z = getVehicleComponentPosition(theVeh, "wheel_rb_dummy")
setVehicleComponentPosition(theVeh, "wheel_rb_dummy", x+0.15, y, z)
local x, y, z = getVehicleComponentPosition(theVeh, "wheel_lf_dummy")
setVehicleComponentPosition(theVeh, "wheel_lf_dummy", x-0.15, y, z)
local x, y, z = getVehicleComponentPosition(theVeh, "wheel_lb_dummy")
setVehicleComponentPosition(theVeh, "wheel_lb_dummy", x-0.15, y, z)
end
)
It is just a simple test script. I thought about using setElementData for vehicles and onClientElementStreamIn for clients to sync it.
I'm just not shure if it's a good aproach or is there a better way of doing this.