Car doors, windows, tires
#1

Hello,

Is there a way to possibly remove those? A function or something? I noticed if you crash doors enough, they fall off.

PLEASE READ ALL REPLIED BEFORE REPLYING TY
Reply
#2

https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus
Reply
#3

Thank you.
Reply
#4

Okay but how can I remove the doors, bumper, hood, and so on? Like make them fall off, all it says in the wiki is for the doors...
Reply
#5

Example:
pawn Код:
new panels, doors, lights, tires;  
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15); // 15 will pop the tires

// Credits are going to SA-MP wiki.
Reply
#6

Yes that is for the tires, but how can I remove the doors, or break the windows so on? Or damage the doors?
Reply
#7

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

EDIT: link given by PrawkC already.
Reply
#8

I know but what value do I set to the doors to get them to get damaged or break off Please Read
Reply
#9

Bump comon please?
Reply
#10

I suggest you to use Binary values:

UpdateVehicleDamageStatus(vehicleid, panels, 0b00100000, lights, tires);

https://sampwiki.blast.hk/wiki/DoorStates
https://sampwiki.blast.hk/wiki/TireStates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)