extends |
Protocol |
---|
GTA Five M Protocol Class Server base can be found at https://fivem.net/ Based on code found at https://github.com/LiquidObsidian/fivereborn-query
Methods | ||
---|---|---|
public
|
beforeSend(Server $server)
|
# |
public
|
processResponse(): array
|
# |
protected
|
processStatus(Buffer $buffer): array
|
# |
Methods inherited from GameQ\Protocol |
---|
__construct(), __toString(), portDiff(), findQueryPort(), joinLink(), name(), nameLong(), state(), getProtocol(), transport(), options(), getPacket(), packetResponse(), hasChallenge(), challengeParseAndApply(), challengeApply(), getNormalize(), |
Properties | |||
---|---|---|---|
protected
|
array
|
$packets = [self::PACKET_STATUS => "\xFF\xFF\xFF\xFFgetinfo xxx"]
|
# |
protected
|
array
|
$responses = ["\xFF\xFF\xFF\xFFinfoResponse" => "processStatus"]
|
# |
protected
|
string
|
$protocol = 'cfx'
|
# |
protected
|
string
|
$name = 'cfx'
|
# |
protected
|
string
|
$name_long = "CitizenFX"
|
# |
protected
|
string
|
$PlayerList = []
|
# |
protected
|
array
|
$normalize = [
'general' => [
'gametype' => 'gametype',
'hostname' => 'hostname',
'mapname' => 'mapname',
'maxplayers' => 'sv_maxclients',
'mod' => 'gamename',
'numplayers' => 'clients',
'password' => 'privateClients',
],
]
|
# |
Properties inherited from GameQ\Protocol |
---|
$port_diff, $transport, $process_methods, $packets_response, $result, $options, $state, $join_link |