Hmm nope it isnt that what i need.
Heres my script:
Client
addEvent( "rampdown", true )
addEventHandler( "rampdown", localPlayer, function ( theVeh )
setTimer(
function()
theVeh = getPedOccupiedVehicle(localPlayer)
x, y, z = getVehicleComponentPosition( theVeh, "boot_dummy")
rx, ry, rz = getVehicleComponentRotation(theVeh, "boot_dummy" )
--setVehicleComponentPosition( theVeh, "boot_dummy", x, y, z+0.1 )
setVehicleComponentRotation(theVeh, "boot_dummy", rx-0.8, 0, 0 )
end, 50, 113)
end )
Server:
addCommandHandler("rampdown", function ( thePlayer )
if isPedInVehicle ( thePlayer ) then
local veh = getPedOccupiedVehicle ( thePlayer )
for i, player in ipairs ( getElementsByType("player") ) do
triggerClientEvent ( player, "rampdown", player, veh )
end
end
end )