Skip to content

FiveM-PHP is a library for quick use of the server APIs available on FiveM 🐌

License

Notifications You must be signed in to change notification settings

UnknowColum/FiveM-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FiveM-PHP 🐌

packagist-stable packagist-license packagist-download

Installation

Pull in the project using composer: composer require itexzoz/fivem-php

Constants

ServerFilter [ EMPTY, GET_PLAYER, GET_RESOURCES, GET_VARS]

ServerlistFilter [EMPTY, GET_PLAYER, GET_RESOURCES, GET_SERVERS]

DirectServerFilter [PLAYERS, SERVER_INFO]

Get specific server information from FiveM Masterlist

echo (new Serverslist)->Get()->Server(['149.202.65.148', 30120], ServerFilter::EMPTY);
try {
    echo (new Serverslist)->Get()->Global(ServerlistFilter::EMPTY);
} catch (Exception $e) {
}

Get specific server information with direct connect

try {
    echo (new DirectServer())->Get()->Server(["149.202.65.148", 30120], DirectServerFilter::SERVER_INFO);
} catch (EmptyDirectServerFilterException $e) {
}

About

FiveM-PHP is a library for quick use of the server APIs available on FiveM 🐌

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages