Update licenses support

This commit is contained in:
Jérémie N'gadi
2017-09-13 12:06:28 +02:00
parent 83bd85c377
commit 91e6aace4e
2 changed files with 10 additions and 4 deletions
+1
View File
@@ -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
View File
@@ -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