feat!: ace permission system

This commit is contained in:
BerkieBb
2022-02-24 21:58:49 +01:00
parent 1412d02db1
commit 31888996ab
13 changed files with 195 additions and 72 deletions
+2 -2
View File
@@ -146,9 +146,9 @@ exports('AddGangs', AddGangs)
local function GetCoreVersion(InvokingResource)
local resourceVersion = GetResourceMetadata(GetCurrentResourceName(), 'version')
if InvokingResource and InvokingResource ~= '' then
print(("%s called qbcore version check: %s"):format(InvokingResource, resourceVersion))
print(("%s called qbcore version check: %s"):format(InvokingResource or 'Unknown Resource', resourceVersion))
end
return resourceVersion
end
QBCore.Functions.GetCoreVersion = GetCoreVersion
exports('GetCoreVersion', GetCoreVersion)
exports('GetCoreVersion', GetCoreVersion)