Saving damaged vehicles
#3

Quote:
Originally Posted by Shinja
Посмотреть сообщение
Код:
SetVehicleParamsEx(vehicleid, engine[vehicleid], lights[vehicleid], alarm[vehicleid], doors[vehiceid], bonnet[vehicleid], boot[vehicleid], objective[vehicleid]);
SetVehicleParamsEx doesn't really control damage, it controls the open/closed state of the vehicle(ex: if the doors are locked, doors will be 1). You should use GetVehicleDamageStatus, along with UpdateVehicleDamageStatus to get and control vehicle damage.

Refer to:
https://sampwiki.blast.hk/wiki/GetVehicleDamageStatus
https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
Reply


Messages In This Thread
Saving damaged vehicles - by martoivanov - 23.08.2016, 12:57
Re: Saving damaged vehicles - by Shinja - 23.08.2016, 13:02
Re: Saving damaged vehicles - by Abagail - 23.08.2016, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)