Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rootMenuConfig = {
- {
- id = "general",
- displayName = "General",
- icon = "#globe-europe",
- enableMenu = function()
- return not isDead
- end,
- subMenus = {"general:escort", "general:putinvehicle", "general:unseatnearest", "general:flipvehicle", "general:checkoverself", "general:checktargetstates", "general:keysgive", "general:emotes", "general:checkvehicle", "general:apartgivekey", "general:aparttakekey" }
- },
- {
- id = "police-action",
- displayName = "Police Actions",
- icon = "#police-action",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "police" and not dead then
- return true
- end
- end,
- subMenus = {"general:putinvehicle", "general:escort", "medic:revive", "cuffs:remmask", "police:removeweapons", "police:frisk"}
- },
- {
- id = "police-check",
- displayName = "Police Checks",
- icon = "#police-check",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "police" and not dead then
- return true
- end
- end,
- subMenus = {"general:checktargetstates", "police:checkbank", "police:checklicenses", "cuffs:checkinventory", "police:gsr", "police:dnaswab" }
- },
- {
- id = "police-vehicle",
- displayName = "Police Vehicle",
- icon = "#police-vehicle",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "police" and not dead and IsPedInAnyVehicle(PlayerPedId(), false) then
- return true
- end
- end,
- subMenus = {"general:unseatnearest", "police:runplate", "police:toggleradar"}
- },
- {
- id = "policeDead",
- displayName = "10-13",
- icon = "#police-dead",
- functionName = "police:tenThirteen",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "police" and dead then
- return true
- end
- end,
- },
- {
- id = "emsDead",
- displayName = "10-14",
- icon = "#ems-dead",
- functionName = "police:tenForteen",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "ambulance" and dead then
- return true
- end
- end,
- },
- {
- id = "k9",
- displayName = "K9",
- icon = "#k9",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "police" and not dead then
- return true
- end
- end,
- subMenus = {"k9:follow", "k9:vehicle", "k9:sniffvehicle", "k9:huntfind", "k9:sit", "k9:stand", "k9:sniff", "k9:lay", "k9:spawn", "k9:delete", }
- },
- {
- id = "animations",
- displayName = "Walking Styles",
- icon = "#walking",
- enableMenu = function()
- if not dead then
- return true
- end
- end,
- subMenus = { "animations:brave", "animations:hurry", "animations:business", "animations:tipsy", "animations:injured","animations:tough", "animations:default", "animations:hobo", "animations:money", "animations:swagger", "animations:shady", "animations:maneater", "animations:chichi", "animations:sassy", "animations:sad", "animations:posh", "animations:alien" }
- },
- {
- id = "expressions",
- displayName = "Expressions",
- icon = "#expressions",
- enableMenu = function()
- if not dead then
- return true
- end
- end,
- subMenus = { "expressions:normal", "expressions:drunk", "expressions:angry", "expressions:dumb", "expressions:electrocuted", "expressions:grumpy", "expressions:happy", "expressions:injured", "expressions:joyful", "expressions:mouthbreather", "expressions:oneeye", "expressions:shocked", "expressions:sleeping", "expressions:smug", "expressions:speculative", "expressions:stressed", "expressions:sulking", "expressions:weird", "expressions:weird2"}
- },
- {
- id = "judge-raid",
- displayName = "Judge Raid",
- icon = "#judge-raid",
- enableMenu = function()
- return (not isDead and isJudge)
- end,
- subMenus = { "judge-raid:checkowner", "judge-raid:seizeall", "judge-raid:takecash", "judge-raid:takedm"}
- },
- {
- id = "judge-licenses",
- displayName = "Judge Licenses",
- icon = "#judge-licenses",
- enableMenu = function()
- return (not isDead and isJudge)
- end,
- subMenus = { "police:checklicenses", "judge:grantDriver", "judge:grantBusiness", "judge:grantWeapon", "judge:grantHouse", "judge:grantBar", "judge:grantDA", "judge:removeDriver", "judge:removeBusiness", "judge:removeWeapon", "judge:removeHouse", "judge:removeBar", "judge:removeDA", "judge:denyWeapon", "judge:denyDriver", "judge:denyBusiness", "judge:denyHouse" }
- },
- {
- id = "judge-actions",
- displayName = "Judge Actions",
- icon = "#judge-actions",
- enableMenu = function()
- return (not isDead and isJudge)
- end,
- subMenus = { "police:cuff", "cuffs:uncuff", "general:escort", "police:frisk", "cuffs:checkinventory", "police:checkbank"}
- },
- {
- id = "medic",
- displayName = "Medical",
- icon = "#medic",
- enableMenu = function()
- local ped = PlayerPedId()
- PlayerData = ESX.GetPlayerData()
- if PlayerData.job.name == "ambulance" and not dead then
- return true
- end
- end,
- subMenus = {"medic:revive", "medic:heal", "general:escort", "general:putinvehicle", "general:unseatnearest", "general:checktargetstates" }
- },
- {
- id = "doctor",
- displayName = "Doctor",
- icon = "#doctor",
- enableMenu = function()
- return (not isDead and isDoctor)
- end,
- subMenus = { "general:escort", "medic:revive", "general:checktargetstates", "medic:heal" }
- },
- {
- id = "news",
- displayName = "News",
- icon = "#news",
- enableMenu = function()
- return (not isDead and isNews)
- end,
- subMenus = { "news:setCamera", "news:setMicrophone", "news:setBoom" }
- },
- {
- id = "vehicle",
- displayName = "Vehicle",
- icon = "#vehicle-options-vehicle",
- functionName = "veh:options",
- enableMenu = function()
- if not dead and IsPedInAnyVehicle(PlayerPedId(), false) then
- return true
- end
- end,
- },{
- id = "impound",
- displayName = "Impound Vehicle",
- icon = "#impound-vehicle",
- functionName = "impoundVehicle",
- enableMenu = function()
- if not isDead and myJob == "towtruck" and #(GetEntityCoords(PlayerPedId()) - vector3(549.47796630859, -55.197559356689, 71.069190979004)) < 10.599 then
- return true
- end
- return false
- end
- }, {
- id = "oxygentank",
- displayName = "Remove Oxygen Tank",
- icon = "#oxygen-mask",
- functionName = "RemoveOxyTank",
- enableMenu = function()
- return not isDead and hasOxygenTankOn
- end
- }, {
- id = "cocaine-status",
- displayName = "Request Status",
- icon = "#cocaine-status",
- functionName = "cocaine:currentStatusServer",
- enableMenu = function()
- if not isDead and gangNum == 2 and #(GetEntityCoords(PlayerPedId()) - vector3(1087.3937988281,-3194.2138671875,-38.993473052979)) < 0.5 then
- return true
- end
- return false
- end
- }, {
- id = "cocaine-crate",
- displayName = "Remove Crate",
- icon = "#cocaine-crate",
- functionName = "cocaine:methCrate",
- enableMenu = function()
- if not isDead and gangNum == 2 and #(GetEntityCoords(PlayerPedId()) - vector3(1087.3937988281,-3194.2138671875,-38.993473052979)) < 0.5 then
- return true
- end
- return false
- end
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement