Skip to content

Commit eaf7f2f

Browse files
committed
fix: bug fix for name being nil.
This should never be happening, as the name should always exist or FiveM should be returning invalid in the case they don't exist.
1 parent 0713245 commit eaf7f2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sv_ace_perms.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ local function applyPermissions(source)
3434
local roles = getRoles(source)
3535
if roles == nil then return end
3636

37-
local name = _GetPlayerName(source)
37+
local name = _GetPlayerName(source) or ""
3838

3939
for _, v in pairs(roles) do
4040
local groupInformation = groups[tostring(v)]

0 commit comments

Comments
 (0)