mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
feat (server/exports): Added GetCoreVersion to return the manifest version of the core.
This commit is contained in:
+11
-1
@@ -141,4 +141,14 @@ local function AddGangs(gangs)
|
||||
return true, message, nil
|
||||
end
|
||||
QBCore.Functions.AddGangs = AddGangs
|
||||
exports('AddGangs', AddGangs)
|
||||
exports('AddGangs', AddGangs)
|
||||
|
||||
local function GetCoreVersion(InvokingResource)
|
||||
local resourceVersion = GetResourceMetadata(GetCurrentResourceName(), 'version')
|
||||
if InvokingResource ~= nil then
|
||||
print( ("%s called qbcore version check: %s"):format(InvokingResource, resourceVersion) )
|
||||
end
|
||||
return resourceVersion
|
||||
end
|
||||
QBCore.Functions.GetCoreVersion = GetCoreVersion
|
||||
exports('GetCoreVersion', GetCoreVersion)
|
||||
|
||||
Reference in New Issue
Block a user