mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 23:01:36 +00:00
Update licenses support
This commit is contained in:
@@ -8,6 +8,7 @@ Config.EnableArmoryManagement = false
|
||||
Config.EnableGCIdentity = false
|
||||
Config.EnableNonFreemodePeds = false -- turn this on if you want custom peds
|
||||
Config.EnableSocietyOwnedVehicles = false
|
||||
Config.EnableLicenses = false
|
||||
Config.MaxInService = -1
|
||||
Config.Locale = 'fr'
|
||||
|
||||
|
||||
+9
-4
@@ -162,11 +162,16 @@ ESX.RegisterServerCallback('esx_policejob:getOtherPlayerData', function(source,
|
||||
|
||||
end)
|
||||
|
||||
TriggerEvent('esx_license:getLicenses', _source, function(licenses)
|
||||
data.licenses = licenses
|
||||
end)
|
||||
if Config.EnableLicenses then
|
||||
|
||||
cb(data)
|
||||
TriggerEvent('esx_license:getLicenses', source, function(licenses)
|
||||
data.licenses = licenses
|
||||
cb(data)
|
||||
end)
|
||||
|
||||
else
|
||||
cb(data)
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user