GetVehicleComponentInSlot
#1

Hi,

GetVehicleComponentInSlot

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

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

I'm guessing it would return INVALID_OBJECT_ID.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)