GetVehicleComponentType
#1

I find bug, with function GetVehicleComponentType.


Component Front Bumper.

Код:
main()
{
	printf("%i",GetVehicleComponentType(1175));
}


11 slot - CARMODTYPE_REAR_BUMPER
https://sampwiki.blast.hk/wiki/Componentslots

It's a bug?
Reply
#2

It's because the vehicle doesn't have a front bumper 1175. See:
https://sampwiki.blast.hk/wiki/GetVehicleComponentType
Reply
#3

Quote:

Known Bug: Both front bull bars and front bumper components are saved in the CARMODTYPE_FRONT_BUMPER slot. If a vehicle has both of them installed, this function will only return the one which was installed last.

https://sampwiki.blast.hk/wiki/GetVehicleComponentInSlot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)