GetVehicleComponentType should return other values for Bullbars
#1

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.
Reply
#2

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.
Reply
#3

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


Forum Jump:


Users browsing this thread: 3 Guest(s)