mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Fixed Optin Function
Changed "return true" to "return retval" as If you have permissions it would always return true even if you had opted out
This commit is contained in:
@@ -249,7 +249,7 @@ function QBCore.Functions.IsOptin(source)
|
||||
local license = QBCore.Functions.GetIdentifier(src, 'license')
|
||||
if QBCore.Functions.HasPermission(src, 'admin') then
|
||||
retval = QBCore.Config.Server.PermissionList[license].optin
|
||||
return true
|
||||
return retval
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user