We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the SetMetaData function, the self.PlayerData.source can potentially be nil.
SetMetaData
self.PlayerData.source
nil
local player = exports.qbx_core:GetPlayerByCitizenId(identifier) or exports.qbx_core:GetOfflinePlayer(identifier) if not player then return false end player.Functions.SetMetaData('test_meta', url) return true
[ script:qbx_core] SCRIPT ERROR: Native invocation failed. [ script:qbx_core] > ref (@qbx_core/server/player.lua:701)
The function should check if self.PlayerData.source is not nil before attempting to trigger events or update the player's state.
The function attempted to trigger events and update player states without checking if self.PlayerData.source was nil.
No response
1.17.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
In the
SetMetaData
function, theself.PlayerData.source
can potentially benil
.Reproduction
Expected behavior
The function should check if
self.PlayerData.source
is notnil
before attempting to trigger events or update the player's state.Actual behavior
The function attempted to trigger events and update player states without checking if
self.PlayerData.source
wasnil
.Additional context
No response
Current Version
1.17.2
Custom Resources
The text was updated successfully, but these errors were encountered: