Hey! We’ve noticed native being nil on the latest Canary/Beta version of FiveM
Some important info + repro steps
Client - Beta (5413); Server - 5374
Expected to get player id of ped, as native is supposed to.
Error is being thrown, attempt to call a nil value (global ‘NetworkGetPlayerIndexFromPed’)
Native
Code snippet below.
local playerPed = PlayerPedId()
local playerId = NetworkGetPlayerIndexFromPed(playerPed) -- error thrown here
local playerName = GetPlayerName(playerId)
print('Player name is:', playerName)
However, there does seem to be a scenario where Lua scripts that use an ancient resource manifest version (deprecated since… mid-2017?) that try to access a function by a name not defined at the time may ‘leak’ this state persisting for other resources as well.
This issue is happening across multiple of our servers and multiple clients (all of them using Beta/Latest build)
Resources this is happening in are mostly using ‘adamant’ or ‘cerulean’ fx_version.
Could presence of few resources with old __resource manifest cause this issue server-wide?