I\'m converting a Lua script for FiveM into JavaScript (NodeJS platform) and I\'ve ran into a bizarre issue that I cannot get my head around.
The functionality I am conve