i need help, how to make this work. Please...
-- Bind keys
function bindsetVehicleComponentPosition()
bindKey(source, "p", "down", "setVehicleComponentPosition")
end
addEventHandler("onPlayerJoin", root, bindTurnIndicators)
-- Bind on resource start
for k,v in pairs(getElementsByType("players")) do
bindKey(v, "p", "down", "resetVehicleComponentPosition")
outputServerLog("player: "..getPlayerName(v))
end
-- Toggling Spoiler
function setVehicleComponentPosition( veh )
if thePlayer press "p"
setVehicleComponentPosition (theVeh, "movspoiler_25.0_3000", -0,003, -1,99, 0,48, 0)
end
I also wanted to know how to work this: