Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- Config.Framework = 'qb-core' -- esx, qb-core,
- Config.Weapon = 'weapon_nightstick' -- add any weapon you want or make it nil
- Config.IsAllowed = function()
- if Config.Framework == 'qb-core' then
- local QBCore = exports['qb-core']:GetCoreObject()
- return QBCore.Functions.GetPlayerData().job.name == "police"
- else
- ESX = exports.es_extended:getSharedObject()
- local pdata = ESX.GetPlayerData()
- return pdata.job.name == "police"
- end
- end
- Config.Notify = function(text, type)
- if Config.Framework == 'qb-core' then
- local QBCore = exports['qb-core']:GetCoreObject()
- QBCore.Functions.Notify(text, type)
- else
- ESX = exports.es_extended:getSharedObject()
- ESX.ShowNotification(text)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement