possible fix for lib error

This commit is contained in:
Jim Shield
2025-04-29 12:26:49 +01:00
parent 8f7f9bb009
commit b3100a336c
2 changed files with 25 additions and 3 deletions

View File

@@ -661,6 +661,7 @@ end
-------------------------------------------------------------
-- Server Callback Registration
-------------------------------------------------------------
AuthEvent = nil
currentToken = nil
if isServer() then
createCallback(getScript()..":server:canCarry", function(source, itemTable)
@@ -720,6 +721,8 @@ if isServer() then
end
end)
else
debugPrint("^1Auth^7: ^2Requesting ^3Auth Event^7")
AuthEvent = triggerCallback(getScript()..":callback:GetAuthEvent")
onPlayerLoaded(function()
debugPrint("^1Auth^7: ^2Requesting ^3Auth Event^7")
AuthEvent = triggerCallback(getScript()..":callback:GetAuthEvent")
end, true)
end