SA-MP Forums Archive
Detecting the boot of a vehicle - 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: Detecting the boot of a vehicle (/showthread.php?tid=400599)



Detecting the boot of a vehicle - Intoxicated - 19.12.2012

Is it possible to detect if the boot of a vehicle is still attached? I made a command to open/close the boot but it also works when the boot is visually damaged enough so that it has fallen off.


Re: Detecting the boot of a vehicle - ikey07 - 19.12.2012

you can try to do it with GetVehicleDamageStatus , check wiki.sa-mp.com for en/decode panels functions


Re: Detecting the boot of a vehicle - Intoxicated - 19.12.2012

I found the encode functions there, but are there any decode ones?


Re: Detecting the boot of a vehicle - Intoxicated - 20.12.2012

Bump


Re: Detecting the boot of a vehicle - Intoxicated - 20.12.2012

Yes but I read on the wiki that the states of the panels for example are actually 4 bytes stringed together, would it still work? I tried figuring out how to decode a decimal number to binary on my own but I got no clue how.


Re: Detecting the boot of a vehicle - liam1412 - 04.04.2013

Sorry for dragging up an old thread. I got encode functions but really need decode as well. Can anyone create those for me for food, beer or a small dog!