Hi guys,
I wanna make a script so that the user can change his vehicle's doors state. I wanna make it so that for example when the use types /doors 0 4 , the hood turns missing, or if he types /doors 3 3 , the Front right door turns Ajar, damaged.
This is what I've done, but without success. I hope someone can help me.
function Doorless(localPlayer, doors, state, a, b)
local car = getPedOccupiedVehicle(localPlayer)
state = setVehicleDoorState ( car, tonumber(a), tonumber(b) )
outputChatBox("The reurn was: "..tostring(state))
end
addCommandHandler("doors", Doorless)
Regards,
LinKin