Advertisement
Guest User

efsefff

a guest
Feb 20th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.44 KB | None | 0 0
  1. rootMenuConfig = {
  2. {
  3. id = "general",
  4. displayName = "General",
  5. icon = "#globe-europe",
  6. enableMenu = function()
  7. return not isDead
  8. end,
  9. subMenus = {"general:escort", "general:putinvehicle", "general:unseatnearest", "general:flipvehicle", "general:checkoverself", "general:checktargetstates", "general:keysgive", "general:emotes", "general:checkvehicle", "general:apartgivekey", "general:aparttakekey" }
  10. },
  11. {
  12. id = "police-action",
  13. displayName = "Police Actions",
  14. icon = "#police-action",
  15. enableMenu = function()
  16. local ped = PlayerPedId()
  17. PlayerData = ESX.GetPlayerData()
  18. if PlayerData.job.name == "police" and not dead then
  19. return true
  20. end
  21. end,
  22. subMenus = {"general:putinvehicle", "general:escort", "medic:revive", "cuffs:remmask", "police:removeweapons", "police:frisk"}
  23. },
  24. {
  25. id = "police-check",
  26. displayName = "Police Checks",
  27. icon = "#police-check",
  28. enableMenu = function()
  29. local ped = PlayerPedId()
  30. PlayerData = ESX.GetPlayerData()
  31. if PlayerData.job.name == "police" and not dead then
  32. return true
  33. end
  34. end,
  35. subMenus = {"general:checktargetstates", "police:checkbank", "police:checklicenses", "cuffs:checkinventory", "police:gsr", "police:dnaswab" }
  36. },
  37. {
  38. id = "police-vehicle",
  39. displayName = "Police Vehicle",
  40. icon = "#police-vehicle",
  41. enableMenu = function()
  42. local ped = PlayerPedId()
  43. PlayerData = ESX.GetPlayerData()
  44. if PlayerData.job.name == "police" and not dead and IsPedInAnyVehicle(PlayerPedId(), false) then
  45. return true
  46. end
  47. end,
  48. subMenus = {"general:unseatnearest", "police:runplate", "police:toggleradar"}
  49. },
  50. {
  51. id = "policeDead",
  52. displayName = "10-13",
  53. icon = "#police-dead",
  54. functionName = "police:tenThirteen",
  55. enableMenu = function()
  56. local ped = PlayerPedId()
  57. PlayerData = ESX.GetPlayerData()
  58. if PlayerData.job.name == "police" and dead then
  59. return true
  60. end
  61. end,
  62. },
  63. {
  64. id = "emsDead",
  65. displayName = "10-14",
  66. icon = "#ems-dead",
  67. functionName = "police:tenForteen",
  68. enableMenu = function()
  69. local ped = PlayerPedId()
  70. PlayerData = ESX.GetPlayerData()
  71. if PlayerData.job.name == "ambulance" and dead then
  72. return true
  73. end
  74. end,
  75. },
  76. {
  77. id = "k9",
  78. displayName = "K9",
  79. icon = "#k9",
  80. enableMenu = function()
  81. local ped = PlayerPedId()
  82. PlayerData = ESX.GetPlayerData()
  83. if PlayerData.job.name == "police" and not dead then
  84. return true
  85. end
  86. end,
  87. subMenus = {"k9:follow", "k9:vehicle", "k9:sniffvehicle", "k9:huntfind", "k9:sit", "k9:stand", "k9:sniff", "k9:lay", "k9:spawn", "k9:delete", }
  88. },
  89. {
  90. id = "animations",
  91. displayName = "Walking Styles",
  92. icon = "#walking",
  93. enableMenu = function()
  94. if not dead then
  95. return true
  96. end
  97. end,
  98. 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" }
  99. },
  100. {
  101. id = "expressions",
  102. displayName = "Expressions",
  103. icon = "#expressions",
  104. enableMenu = function()
  105. if not dead then
  106. return true
  107. end
  108. end,
  109. 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"}
  110. },
  111. {
  112. id = "judge-raid",
  113. displayName = "Judge Raid",
  114. icon = "#judge-raid",
  115. enableMenu = function()
  116. return (not isDead and isJudge)
  117. end,
  118. subMenus = { "judge-raid:checkowner", "judge-raid:seizeall", "judge-raid:takecash", "judge-raid:takedm"}
  119. },
  120. {
  121. id = "judge-licenses",
  122. displayName = "Judge Licenses",
  123. icon = "#judge-licenses",
  124. enableMenu = function()
  125. return (not isDead and isJudge)
  126. end,
  127. 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" }
  128. },
  129. {
  130. id = "judge-actions",
  131. displayName = "Judge Actions",
  132. icon = "#judge-actions",
  133. enableMenu = function()
  134. return (not isDead and isJudge)
  135. end,
  136. subMenus = { "police:cuff", "cuffs:uncuff", "general:escort", "police:frisk", "cuffs:checkinventory", "police:checkbank"}
  137. },
  138. {
  139. id = "medic",
  140. displayName = "Medical",
  141. icon = "#medic",
  142. enableMenu = function()
  143. local ped = PlayerPedId()
  144. PlayerData = ESX.GetPlayerData()
  145. if PlayerData.job.name == "ambulance" and not dead then
  146. return true
  147. end
  148. end,
  149. subMenus = {"medic:revive", "medic:heal", "general:escort", "general:putinvehicle", "general:unseatnearest", "general:checktargetstates" }
  150. },
  151. {
  152. id = "doctor",
  153. displayName = "Doctor",
  154. icon = "#doctor",
  155. enableMenu = function()
  156. return (not isDead and isDoctor)
  157. end,
  158. subMenus = { "general:escort", "medic:revive", "general:checktargetstates", "medic:heal" }
  159. },
  160. {
  161. id = "news",
  162. displayName = "News",
  163. icon = "#news",
  164. enableMenu = function()
  165. return (not isDead and isNews)
  166. end,
  167. subMenus = { "news:setCamera", "news:setMicrophone", "news:setBoom" }
  168. },
  169. {
  170. id = "vehicle",
  171. displayName = "Vehicle",
  172. icon = "#vehicle-options-vehicle",
  173. functionName = "veh:options",
  174. enableMenu = function()
  175. if not dead and IsPedInAnyVehicle(PlayerPedId(), false) then
  176. return true
  177. end
  178. end,
  179. },{
  180. id = "impound",
  181. displayName = "Impound Vehicle",
  182. icon = "#impound-vehicle",
  183. functionName = "impoundVehicle",
  184. enableMenu = function()
  185. if not isDead and myJob == "towtruck" and #(GetEntityCoords(PlayerPedId()) - vector3(549.47796630859, -55.197559356689, 71.069190979004)) < 10.599 then
  186. return true
  187. end
  188. return false
  189. end
  190. }, {
  191. id = "oxygentank",
  192. displayName = "Remove Oxygen Tank",
  193. icon = "#oxygen-mask",
  194. functionName = "RemoveOxyTank",
  195. enableMenu = function()
  196. return not isDead and hasOxygenTankOn
  197. end
  198. }, {
  199. id = "cocaine-status",
  200. displayName = "Request Status",
  201. icon = "#cocaine-status",
  202. functionName = "cocaine:currentStatusServer",
  203. enableMenu = function()
  204. if not isDead and gangNum == 2 and #(GetEntityCoords(PlayerPedId()) - vector3(1087.3937988281,-3194.2138671875,-38.993473052979)) < 0.5 then
  205. return true
  206. end
  207. return false
  208. end
  209. }, {
  210. id = "cocaine-crate",
  211. displayName = "Remove Crate",
  212. icon = "#cocaine-crate",
  213. functionName = "cocaine:methCrate",
  214. enableMenu = function()
  215. if not isDead and gangNum == 2 and #(GetEntityCoords(PlayerPedId()) - vector3(1087.3937988281,-3194.2138671875,-38.993473052979)) < 0.5 then
  216. return true
  217. end
  218. return false
  219. end
  220. }
  221. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement