The script allows you to find a free seat in vehicle
- Download include from Here
- Add include to your gamemode using
#include <s_freeseat>
GetVehicleFreeSeat(vehicleid)
- vehicle - ID of the vehicle from which you want to find out the free seat, returns -1 if there are no free seats.
CMD:freeseat(playerid)
{
new veh = GetPlayerVehicleID(playerid);
if(!veh) return 1;
new chatStr[14];
format(chatStr, sizeof(chatStr), "Free seat: %i", GetVehicleFreeSeat(veh));
SendClientMessage(playerid, -1, chatStr);
return 1;
}