Hi,
You should check the return of getIdentifiers(id) before calling [‘fivem’] like
local identifiers = GetIdentifiers(id)
if not identifiers then
print("error")
return
end
local _, fivemid = identifiers['fivem']:match("([^:]+):([^:]+)")
or something like that
1 Like