SA-MP Forums Archive
GetVehicleComponentInSlot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetVehicleComponentInSlot (/showthread.php?tid=483922)



GetVehicleComponentInSlot - audriuxxx - 28.12.2013

Hi,

GetVehicleComponentInSlot

If there is no component in a specif slot, then it return 0 ?


Re: GetVehicleComponentInSlot - PowerPC603 - 28.12.2013

I guess so.
The only way to know for sure is to try it.
Use the command on a vehicle that has no mods on it and print the result, you could use SendClientMessage for that.
Код:
SendClientMessage(playerid, 0xFFFFFFFF, GetVehicleComponentInSlot(GetPlayerVehicleID(playerid), 0));
Use this in OnPlayerEnterVehicle callback for example.
Then you're informed about it for every vehicle you try to enter.


Re: GetVehicleComponentInSlot - Threshold - 28.12.2013

I'm guessing it would return INVALID_OBJECT_ID.