While a player is online and using the Gta5m Protocol GameQ will produce the following error. I tried investigating it myself to fix it but was not able to figure out how to solve this error.
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in C:\xampp\htdocs\test\GameQ-3\src\GameQ\Filters\Normalize.php:115
Stack trace:
#0 C:\xampp\htdocs\test\GameQ-3\src\GameQ\Filters\Normalize.php(115): array_key_exists('nick', '127.0.0.1')
#1 C:\xampp\htdocs\test\GameQ-3\src\GameQ\Filters\Normalize.php(67): GameQ\Filters\Normalize->check('player', '127.0.0.1')
#2 C:\xampp\htdocs\test\GameQ-3\src\GameQ\GameQ.php(650): GameQ\Filters\Normalize->apply(Array, Object(GameQ\Server))
#3 C:\xampp\htdocs\test\GameQ-3\src\GameQ\GameQ.php(370): GameQ\GameQ->doApplyFilters(Array, Object(GameQ\Server))
#4 C:\xampp\htdocs\test\GameQ-3\src\GameQ\Protocols\Cfx.php(119): GameQ\GameQ->process()
#5 C:\xampp\htdocs\test\GameQ-3\src\GameQ\GameQ.php(483): GameQ\Protocols\Cfx->beforeSend(Object(GameQ\Server))
#6 C:\xampp\htdocs\test\GameQ-3\src\GameQ\GameQ.php(360): GameQ\GameQ->doQueries()
#7 C:\xampp\htdocs\test\index.php(14): GameQ\GameQ->process()
#8 {main}
thrown in C:\xampp\htdocs\test\GameQ-3\src\GameQ\Filters\Normalize.php on line 115
Here is a small test script that demonstrates the issue
While a player is online and using the Gta5m Protocol GameQ will produce the following error. I tried investigating it myself to fix it but was not able to figure out how to solve this error.
Here is a small test script that demonstrates the issue
Most of the FiveM query information can be found at these two links that are self-hosted by the server
An example of the players.json is