Skip to content

0xUnxpected/s_freeseat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

GetVehicleFreeSeat

The script allows you to find a free seat in vehicle

Installation

  • Download include from Here
  • Add include to your gamemode using
#include <s_freeseat>

Functions

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.

Example of using

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;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published