SA-MP Forums Archive
GetVehicleComponentType should return other values for Bullbars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: GetVehicleComponentType should return other values for Bullbars (/showthread.php?tid=404657)



GetVehicleComponentType should return other values for Bullbars - Raphinity - 03.01.2013

In the list of car component ID, there are :
1115 - fbb_lr_slv1 - Front Bullbars - Chrome - Slamvan
1116 - fbb_lr_slv2 - Front Bullbars - Slamin - Slamvan
1117 - fbmp_lr_slv1 - Front Bumper - Chrome - Slamvan

This is possible to put a Front Bumper and a Front Bullbar, by using the function AddVehicleComponent(vehicleid, componentid).

However, by using the function GetVehicleComponentType(component), both of them return "CARMODTYPE_FRONT_BUMPER".

This problem also exists for the Remington which can also get Bumpers and Bullbars.

The lack of component types, like "CARMODTYPE_FRONT_BULLBAR" and "CARMODTYPE_REAR_BULLBAR", generates some bugs when we need to save two "parts" (bullbar and bumper), as it is in a same Component Slot.


Respuesta: GetVehicleComponentType should return other values for Bullbars - Denn10 - 09.01.2013

It has become a common problem, but does not create much damage to other users, which would be the famous Crash, which is common when playing with an incompatible combination.


Re: GetVehicleComponentType should return other values for Bullbars - niCe - 11.01.2013

You can actually script your own function to return specific type for the bullbar components.