Removing the rear doors of vehicles - 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: Removing the rear doors of vehicles (
/showthread.php?tid=662282)
Removing the rear doors of vehicles -
Rufio - 28.12.2018
I want to remove the back doors of vehicles, I did a lot of ******'ing but didn't come up with anything. Currently, I am using UpdateVehicleDamageStatus along with encode_doors but it only lets me remove the driver's and co-driver's doors but not the rear doors. Is there any way to do this?
Re: Removing the rear doors of vehicles -
m4karow - 28.12.2018
The easy way
1 - Print the values of GetVehicleDamageStatus under OnVehicleDamageStatusUpdate
2 - Damage the vehicle to let the doors fall
3 - UpdateVehicleDamageStatus
Or
https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
https://sampwiki.blast.hk/wiki/DoorStates
Re: Removing the rear doors of vehicles -
Threshold - 29.12.2018
https://sampwiki.blast.hk/wiki/DoorStat...stores_what.3F
Quote:
The first byte stores the state of the hood
The second byte stores the state of the trunk
The third byte stores the state of the drivers door
The fourth byte stores the state of the co-drivers door
The states of the 2 rear doors cannot be handled by GetVehicleDamageStatus and UpdateVehicleDamageStatus.
|