SA-MP Forums Archive
Any function to open vehicle doors? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Any function to open vehicle doors? (/showthread.php?tid=414622)



Any function to open vehicle doors? - Captain_Mani - 10.02.2013

Is there any function to open vehicle doors?
A function like OnVehicleDoor?
Or any include for it?


Re: Any function to open vehicle doors? - Captain_Mani - 10.02.2013

Bump


Re: Any function to open vehicle doors? - Mean - 10.02.2013

You can only detect if a door is locked, not opened.

https://sampwiki.blast.hk/wiki/GetVehicleParamsEx


Re: Any function to open vehicle doors? - MP2 - 10.02.2013

https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
->
https://sampwiki.blast.hk/wiki/DoorStates
->
'The first bit stores whether the door is opened(1) or not(0) (the door will still lock (and change the first bit to 0) if closed - its just open)'

It won't actually make the door 'OPEN', it will make it be 'swinging'. That's as close as you can yet, unfortunately.