Guest User

Untitled

a guest
May 5th, 2019
1,634
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.09 KB | None | 0 0
  1. --[[
  2. FiveM Scripts
  3. Copyright C 2018 Sighmir
  4.  
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU Affero General Public License as published
  7. by the Free Software Foundation, either version 3 of the License, or
  8. at your option any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Affero General Public License for more details.
  14.  
  15. You should have received a copy of the GNU Affero General Public License
  16. along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. ]]
  18.  
  19. local Tunnel = module("vrp", "lib/Tunnel")
  20. local Proxy = module("vrp", "lib/Proxy")
  21. local htmlEntities = module("vrp", "lib/htmlEntities")
  22.  
  23. vRPbm = {}
  24. vRP = Proxy.getInterface("vRP")
  25. vRPclient = Tunnel.getInterface("vRP","vRP_basic_menu")
  26. BMclient = Tunnel.getInterface("vRP_basic_menu","vRP_basic_menu")
  27. vRPbsC = Tunnel.getInterface("vRP_barbershop","vRP_basic_menu")
  28. TSclient = Tunnel.getInterface("vrp_tattoos","vRP_basic_menu")
  29.  
  30. Tunnel.bindInterface("vrp_basic_menu",vRPbm)
  31.  
  32. local Lang = module("vrp", "lib/Lang")
  33. local cfg = module("vrp", "cfg/base")
  34. local lang = Lang.new(module("vrp", "cfg/lang/"..cfg.lang) or {})
  35.  
  36. -- LOG FUNCTION
  37. function vRPbm.logInfoToFile(file,info)
  38. file = io.open(file, "a")
  39. if file then
  40. file:write(os.date("%c").." => "..info.."\n")
  41. end
  42. file:close()
  43. end
  44. -- MAKE CHOICES
  45. --toggle service
  46. local choice_service = {function(player,choice)
  47. local user_id = vRP.getUserId({player})
  48. local service = "onservice"
  49. if user_id ~= nil then
  50. if vRP.hasGroup({user_id,service}) then
  51. vRP.removeUserGroup({user_id,service})
  52. if vRP.hasMission({player}) then
  53. vRP.stopMission({player})
  54. end
  55. vRPclient.notify(player,{"~r~Serviço desligado"})
  56. else
  57. vRP.addUserGroup({user_id,service})
  58. vRPclient.notify(player,{"~g~Serviço ligado"})
  59. end
  60. end
  61. end, "Ligar/Desligar serviços"}
  62.  
  63. -- teleport waypoint
  64. local choice_tptowaypoint = {function(player,choice)
  65. TriggerClientEvent("TpToWaypoint", player)
  66. end, "Teleportar para marcação."}
  67.  
  68. -- fix barbershop green hair for now
  69. local ch_fixhair = {function(player,choice)
  70. local custom = {}
  71. local user_id = vRP.getUserId({player})
  72. vRP.getUData({user_id,"vRP:head:overlay",function(value)
  73. if value ~= nil then
  74. custom = json.decode(value)
  75. vRPbsC.setOverlay(player,{custom,true})
  76. end
  77. end})
  78. vRP.getUData({user_id,"vRP:tattoos",function(value)
  79. local tattoos = json.decode(value)
  80. if tattoos ~= nil then
  81. for k,v in pairs(tattoos) do
  82. TSclient.drawTattoo(player,{k,v})
  83. end
  84. end
  85. end})
  86. end, "Fixar o bug da barbearia e tattoos."}
  87.  
  88. --toggle blips
  89. local ch_blips = {function(player,choice)
  90. TriggerClientEvent("showBlips", player)
  91. end, "Ativar blips."}
  92.  
  93. local spikes = {}
  94. local ch_spikes = {function(player,choice)
  95. local user_id = vRP.getUserId({player})
  96. BMclient.isCloseToSpikes(player,{},function(closeby)
  97. if closeby and (spikes[player] or vRP.hasPermission({user_id,"admin.spikes"})) then
  98. BMclient.removeSpikes(player,{})
  99. spikes[player] = false
  100. elseif closeby and not spikes[player] and not vRP.hasPermission({user_id,"admin.spikes"}) then
  101. vRPclient.notify(player,{"~r~Você só pode carregar apenas um conjunto de spikes!"})
  102. elseif not closeby and spikes[player] and not vRP.hasPermission({user_id,"admin.spikes"}) then
  103. vRPclient.notify(player,{"~r~Você só pode implantar apenas um conjunto de spikes!"})
  104. elseif not closeby and (not spikes[player] or vRP.hasPermission({user_id,"admin.spikes"})) then
  105. BMclient.setSpikesOnGround(player,{})
  106. spikes[player] = true
  107. end
  108. end)
  109. end, "Ativar spikes."}
  110.  
  111. local ch_sprites = {function(player,choice)
  112. TriggerClientEvent("showSprites", player)
  113. end, "Ativar sprites."}
  114.  
  115. local ch_deleteveh = {function(player,choice)
  116. BMclient.deleteVehicleInFrontOrInside(player,{5.0})
  117. end, "Deletar o carro mais próximo."}
  118.  
  119. --client function
  120. local ch_crun = {function(player,choice)
  121. vRP.prompt({player,"Function:","",function(player,stringToRun)
  122. stringToRun = stringToRun or ""
  123. TriggerClientEvent("RunCode:RunStringLocally", player, stringToRun)
  124. end})
  125. end, "Ativar função do client."}
  126.  
  127. --server function
  128. local ch_srun = {function(player,choice)
  129. vRP.prompt({player,"Function:","",function(player,stringToRun)
  130. stringToRun = stringToRun or ""
  131. TriggerEvent("RunCode:RunStringRemotelly", stringToRun)
  132. end})
  133. end, "Ativar função do servidor."}
  134.  
  135. --police weapons // comment out the weapons if you dont want to give weapons.
  136. local n1_policia_armas = {}
  137. n1_policia_armas["ARSENAL NÍVEL 1"] = {function(player,choice)
  138. vRPclient.giveWeapons(player,{{
  139. ["WEAPON_COMBATPISTOL"] = {ammo=200},
  140. ["WEAPON_NIGHTSTICK"] = {ammo=200},
  141. ["WEAPON_STUNGUN"] = {ammo=200},
  142. ["WEAPON_FLARE"] = {ammo=20},
  143. ["WEAPON_FLASHLIGHT"] = {ammo=1},
  144. }, true})
  145. end}
  146. n1_policia_armas["COLETE"] = {function(player,choice)
  147. BMclient.setArmour(player,{100,true})
  148. end}
  149. n1_policia_armas["Devolver Arsenal"] = {function(player,choice)
  150. vRPclient.giveWeapons(player,{{
  151. }, true})
  152. BMclient.setArmour(player,{0,true})
  153. end}
  154.  
  155. local n2_policia_armas = {}
  156. n2_policia_armas["ARSENAL NÍVEL 2"] = {function(player,choice)
  157. vRPclient.giveWeapons(player,{{
  158. ["WEAPON_HEAVYPISTOL"] = {ammo=200},
  159. ["WEAPON_NIGHTSTICK"] = {ammo=200},
  160. ["WEAPON_STUNGUN"] = {ammo=200},
  161. ["WEAPON_FLARE"] = {ammo=20},
  162. ["WEAPON_FLASHLIGHT"] = {ammo=1},
  163. }, true})
  164. end}
  165. n2_policia_armas["COLETE"] = {function(player,choice)
  166. BMclient.setArmour(player,{100,true})
  167. end}
  168. n2_policia_armas["Devolver Arsenal"] = {function(player,choice)
  169. vRPclient.giveWeapons(player,{{
  170. }, true})
  171. BMclient.setArmour(player,{0,true})
  172. end}
  173.  
  174. local n3_policia_armas = {}
  175. n3_policia_armas["ARSENAL NÍVEL 3"] = {function(player,choice)
  176. vRPclient.giveWeapons(player,{{
  177. ["WEAPON_HEAVYPISTOL"] = {ammo=200},
  178. ["WEAPON_COMBATPISTOL"] = {ammo=200},
  179. ["WEAPON_ASSAULTSMG"] = {ammo=300},
  180. ["WEAPON_STUNGUN"] = {ammo=200},
  181. ["WEAPON_FLARE"] = {ammo=20},
  182. ["WEAPON_FLASHLIGHT"] = {ammo=1},
  183. }, true})
  184. end}
  185. n3_policia_armas["COLETE"] = {function(player,choice)
  186. BMclient.setArmour(player,{100,true})
  187. end}
  188. n3_policia_armas["Devolver Arsenal"] = {function(player,choice)
  189. vRPclient.giveWeapons(player,{{
  190. }, true})
  191. BMclient.setArmour(player,{0,true})
  192. end}
  193.  
  194. local n4_policia_armas = {}
  195. n4_policia_armas["ARSENAL NÍVEL 4"] = {function(player,choice)
  196. vRPclient.giveWeapons(player,{{
  197. ["WEAPON_PISTOL50"] = {ammo=200},
  198. ["WEAPON_HEAVYSHOTGUN"] = {ammo=200},
  199. ["WEAPON_CARBINERIFLE_MK2"] = {ammo=200},
  200. ["WEAPON_FLASHLIGHT"] = {ammo=1},
  201. }, true})
  202. end}
  203. n4_policia_armas["COLETE"] = {function(player,choice)
  204. BMclient.setArmour(player,{100,true})
  205. end}
  206. n4_policia_armas["Devolver Arsenal"] = {function(player,choice)
  207. vRPclient.giveWeapons(player,{{
  208. }, true})
  209. BMclient.setArmour(player,{0,true})
  210. end}
  211.  
  212. local n5_policia_armas = {}
  213. n5_policia_armas["ARSENAL NÍVEL 5"] = {function(player,choice)
  214. vRPclient.giveWeapons(player,{{
  215. ["WEAPON_PISTOL50"] = {ammo=200},
  216. ["WEAPON_HEAVYSNIPER"] = {ammo=200},
  217. ["WEAPON_CARBINERIFLE_MK2"] = {ammo=200},
  218. ["WEAPON_FLASHLIGHT"] = {ammo=1},
  219. }, true})
  220. end}
  221. n5_policia_armas["COLETE"] = {function(player,choice)
  222. BMclient.setArmour(player,{100,true})
  223. end}
  224. n5_policia_armas["Devolver Arsenal"] = {function(player,choice)
  225. vRPclient.giveWeapons(player,{{
  226. }, true})
  227. BMclient.setArmour(player,{0,true})
  228. end}
  229.  
  230. local n6_policia_armas = {}
  231. n6_policia_armas["ARSENAL NÍVEL 6"] = {function(player,choice)
  232. vRPclient.giveWeapons(player,{{
  233. ["WEAPON_PISTOL50"] = {ammo=200},
  234. ["WEAPON_HEAVYSSHOTGUN"] = {ammo=200},
  235. ["WEAPON_CARBINERIFLE_MK2"] = {ammo=200},
  236. ["WEAPON_BZGAS"] = {ammo=20},
  237. ["WEAPON_FLASHLIGHT"] = {ammo=1},
  238. }, true})
  239. end}
  240. n6_policia_armas["COLETE"] = {function(player,choice)
  241. BMclient.setArmour(player,{100,true})
  242. end}
  243. n6_policia_armas["Devolver Arsenal"] = {function(player,choice)
  244. vRPclient.giveWeapons(player,{{
  245. }, true})
  246. BMclient.setArmour(player,{0,true})
  247. end}
  248.  
  249. --store money
  250. local choice_store_money = {function(player, choice)
  251. local user_id = vRP.getUserId({player})
  252. if user_id ~= nil then
  253. local amount = vRP.getMoney({user_id})
  254. if vRP.tryPayment({user_id, amount}) then -- unpack the money
  255. vRP.giveInventoryItem({user_id, "money", amount, true})
  256. end
  257. end
  258. end, "Enviar seu dinheiro da carteira para o inventário."}
  259.  
  260. --medkit storage
  261. local emergency_medkit = {}
  262. emergency_medkit["Kit Médico"] = {function(player,choice)
  263. local user_id = vRP.getUserId({player})
  264. vRP.giveInventoryItem({user_id,"medkit",25,true})
  265. end}
  266. emergency_medkit["Medicamentos"] = {function(player,choice)
  267. local user_id = vRP.getUserId({player})
  268. vRP.giveInventoryItem({user_id,"medicamentos",25,true})
  269. end}
  270.  
  271.  
  272. local emergency_pilula = {}
  273. emergency_pilula["Pilulas"] = {function(player,choice)
  274. local user_id = vRP.getUserId({player})
  275. vRP.giveInventoryItem({user_id,"pilula",1,true})
  276. end}
  277.  
  278. local uberEATS_item1 = {}
  279. uberEATS_item1["Pegar 10 Coca-Cola"] = {function(player,choice)
  280. local user_id = vRP.getUserId({player})
  281. vRP.giveInventoryItem({user_id,"cocacola",10,true})
  282. end}
  283. local uberEATS_item2 = {}
  284. uberEATS_item2["Pegar 10 Big Tasty"] = {function(player,choice)
  285. local user_id = vRP.getUserId({player})
  286. vRP.giveInventoryItem({user_id,"churrasco",10,true})
  287. end}
  288. local gariItem = {}
  289. gariItem["Pegar 10 Sacos de Lixo"] = {function(player,choice)
  290. local user_id = vRP.getUserId({player})
  291. vRP.giveInventoryItem({user_id,"saco_lixo",10,true})
  292. end}
  293. local minItem = {}
  294. minItem["Pegar 10 Picaretas"] = {function(player,choice)
  295. local user_id = vRP.getUserId({player})
  296. vRP.giveInventoryItem({user_id,"picareta",10,true})
  297. end}
  298.  
  299. --heal me
  300. local emergency_heal = {}
  301. emergency_heal["Atendimento Médico"] = {function(player,choice)
  302. local user_id = vRP.getUserId({player})
  303. vRPclient.notify(player,{"~h~Aguarde, o médico irá lhe atender, aguarde..."})
  304. Citizen.Wait(10000)
  305. vRP.tryFullPayment({user_id,400})
  306. vRPclient.setHealth(player,{1000})
  307. vRPclient.notify(player,{"~h~O médico lhe antendeu, tenha um bom dia."})
  308. vRPclient.notify(player,{"~h~A sua consulta custou ~r~R$ 400."})
  309. end}
  310.  
  311. --loot corpse
  312. local choice_loot = {function(player,choice)
  313. local user_id = vRP.getUserId({player})
  314. if user_id ~= nil then
  315. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  316. local nuser_id = vRP.getUserId({nplayer})
  317. if nuser_id ~= nil then
  318. vRPclient.isInComa(nplayer,{}, function(in_coma)
  319. if in_coma then
  320. local revive_seq = {
  321. {"amb@medic@standing@tendtodead@idle_a","idle_a",1},
  322. {"amb@medic@standing@tendtodead@idle_a","idle_a",1},
  323. {"amb@medic@standing@tendtodead@idle_a","idle_a",1},
  324. }
  325. vRPclient.playAnim(player,{false,revive_seq,false}) -- anim
  326. SetTimeout(10000, function()
  327. local ndata = vRP.getUserDataTable({nuser_id})
  328. if ndata ~= nil then
  329. if ndata.inventory ~= nil then -- gives inventory items
  330. vRP.clearInventory({nuser_id})
  331. for k,v in pairs(ndata.inventory) do
  332. vRP.giveInventoryItem({user_id,k,v.amount,true})
  333. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou "..v.amount.." "..vRP.getItemName(k).." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  334. end
  335. end
  336. end
  337. local nmoney = vRP.getMoney({nuser_id})
  338. if vRP.tryPayment({nuser_id,nmoney}) then
  339. vRP.giveMoney({user_id,nmoney})
  340. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou R$"..nmoney.." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  341. end
  342. vRPclient.getWeapons(nplayer,{},function(weapons)
  343. for k,v in pairs(weapons) do
  344. vRP.giveInventoryItem({user_id, "wbody|"..k, 1, true})
  345. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou 1 "..k.." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  346. if v.ammo > 0 then
  347. vRP.giveInventoryItem({user_id, "wammo|"..k, v.ammo, true})
  348. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou "..v.ammo.." balas de "..k.." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  349. end
  350. end
  351.  
  352. -- clear all weapons
  353. vRPclient.giveWeapons(nplayer,{{},true})
  354. end)
  355. end)
  356. vRPclient.stopAnim(player,{false})
  357. else
  358. vRPclient.notify(player,{lang.emergency.menu.revive.not_in_coma()})
  359. end
  360. end)
  361. else
  362. vRPclient.notify(player,{lang.common.no_player_near()})
  363. end
  364. end)
  365. end
  366. end,"Saquear corpo próximo"}
  367.  
  368. local choice_thiefnear = {function(player,choice)
  369. local user_id = vRP.getUserId({player})
  370. if user_id ~= nil then
  371. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  372. local nuser_id = vRP.getUserId({nplayer})
  373. if nuser_id ~= nil then
  374. vRP.request({nplayer, "Deseja entregar TUDO para o suspeito?", 15, function(nplayer,ok)
  375. if ok then
  376. local ndata = vRP.getUserDataTable({nuser_id})
  377. if ndata ~= nil then
  378. if ndata.inventory ~= nil then -- gives inventory items
  379. vRP.clearInventory({nuser_id})
  380. for k,v in pairs(ndata.inventory) do
  381. vRP.giveInventoryItem({user_id,k,v.amount,true})
  382. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou "..v.amount.." "..vRP.getItemName(k).." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  383. end
  384. end
  385. end
  386. local nmoney = vRP.getMoney({nuser_id})
  387. if vRP.tryPayment({nuser_id,nmoney}) then
  388. vRP.giveMoney({user_id,nmoney})
  389. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou R$"..nmoney.." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  390. end
  391. vRPclient.getWeapons(nplayer,{},function(weapons)
  392. for k,v in pairs(weapons) do
  393. vRP.giveInventoryItem({user_id, "wbody|"..k, 1, true})
  394. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou 1 "..k.." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  395. if v.ammo > 0 then
  396. vRP.giveInventoryItem({user_id, "wammo|"..k, v.ammo, true})
  397. --TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] looteou "..v.ammo.." balas de "..k.." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  398. end
  399. end
  400. vRPclient.giveWeapons(nplayer,{{},true})
  401. end)
  402. else
  403. vRPclient.notify(player, {"~r~Ele(a) recusou-se a entregar TUDO."})
  404. end
  405. end})
  406. else
  407. vRPclient.notify(player,{lang.common.no_player_near()})
  408. end
  409. end)
  410. end
  411. end,"Roubar pessoa próxima"}
  412.  
  413. -- hack player
  414. local ch_hack = {function(player,choice)
  415. -- get nearest player
  416. local user_id = vRP.getUserId({player})
  417. if user_id ~= nil then
  418. vRPclient.getNearestPlayer(player,{25},function(nplayer)
  419. if nplayer ~= nil then
  420. local nuser_id = vRP.getUserId({nplayer})
  421. if nuser_id ~= nil then
  422. -- prompt number
  423. local nbank = vRP.getBankMoney({nuser_id})
  424. local amount = math.floor(nbank*0.01)
  425. local nvalue = nbank - amount
  426. if math.random(1,100) == 1 then
  427. vRP.setBankMoney({nuser_id,nvalue})
  428. vRPclient.notify(nplayer,{"Hackeado ~r~".. amount .."$."})
  429. vRP.giveInventoryItem({user_id,"dirty_money",amount,true})
  430. else
  431. vRPclient.notify(nplayer,{"~g~Tentativa de hackear falhou."})
  432. vRPclient.notify(player,{"~r~Tentativa de hackear falhou."})
  433. end
  434. else
  435. vRPclient.notify(player,{lang.common.no_player_near()})
  436. end
  437. else
  438. vRPclient.notify(player,{lang.common.no_player_near()})
  439. end
  440. end)
  441. end
  442. end,"Hackear o player mais próximo."}
  443.  
  444. -- mug player
  445. local ch_mug = {function(player,choice)
  446. -- get nearest player
  447. local user_id = vRP.getUserId({player})
  448. if user_id ~= nil then
  449. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  450. if nplayer ~= nil then
  451. local nuser_id = vRP.getUserId({nplayer})
  452. if nuser_id ~= nil then
  453. -- prompt number
  454. local nmoney = vRP.getMoney({nuser_id})
  455. local amount = nmoney
  456. if math.random(1,3) == 1 then
  457. if vRP.tryPayment({nuser_id,amount}) then
  458. vRPclient.notify(nplayer,{"Assaltou ~r~"..amount.."$."})
  459. vRP.giveInventoryItem({user_id,"dirty_money",amount,true})
  460. else
  461. vRPclient.notify(player,{lang.money.not_enough()})
  462. end
  463. else
  464. vRPclient.notify(nplayer,{"~g~Tentativa de assalto falhou."})
  465. vRPclient.notify(player,{"~r~Tentativa de assalto falhou."})
  466. end
  467. else
  468. vRPclient.notify(player,{lang.common.no_player_near()})
  469. end
  470. else
  471. vRPclient.notify(player,{lang.common.no_player_near()})
  472. end
  473. end)
  474. end
  475. end, "Assaltar player mais próximo."}
  476.  
  477. local ch_remphone = {function(player, choice)
  478. local user_id = vRP.getUserId({player})
  479. if user_id ~= nil then
  480. vRPclient.getNearestPlayer(player,{10}, function(nplayer)
  481. if nplayer ~= nil then
  482. local nuser_id = vRP.getUserId({nplayer})
  483. if nuser_id ~= nil then
  484. vRP.request({nplayer, "Deseja entregar o celular para pessoa?", 15, function(nplayer,ok)
  485. if ok then
  486. local namount = vRP.getInventoryItemAmount({nuser_id, "telefone_celular"})
  487. if vRP.tryGetInventoryItem({nuser_id, "telefone_celular", namount, true}) then
  488. vRP.giveInventoryItem({user_id, "telefone_celular", namount, true})
  489. TriggerEvent("DAMN:regLog", ""..GetPlayerName(player).." [user_id "..user_id.."] removeu "..namount.." "..vRP.getItemName("telefone_celular").." de "..GetPlayerName(nplayer).." [nuser_id "..nuser_id.."].")
  490. else
  491. vRPclient.notify(player, {"~r~Ele(a) não tem um celular."})
  492. end
  493. else
  494. vRPclient.notify(player, {"~r~Ele(a) recusou-se a entregar celular."})
  495. end
  496. end})
  497. end
  498. end
  499. end)
  500. end
  501. end, "Remover celular do mais próximo."}
  502.  
  503. -- drag player
  504. local ch_drag = {function(player,choice)
  505. -- get nearest player
  506. local user_id = vRP.getUserId({player})
  507. if user_id ~= nil then
  508. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  509. if nplayer ~= nil then
  510. local nuser_id = vRP.getUserId({nplayer})
  511. if nuser_id ~= nil then
  512. vRPclient.isHandcuffed(nplayer,{},function(handcuffed)
  513. if handcuffed then
  514. TriggerClientEvent("dr:drag", nplayer, player)
  515. else
  516. vRPclient.notify(player,{"O jogador não está algemado."})
  517. end
  518. end)
  519. else
  520. vRPclient.notify(player,{lang.common.no_player_near()})
  521. end
  522. else
  523. vRPclient.notify(player,{lang.common.no_player_near()})
  524. end
  525. end)
  526. end
  527. end, "Arrastar jogador mais próximo."}
  528.  
  529. --ALGEMAS FACÇÃO
  530. local choice_algemar = {function(player,choice)
  531. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  532. local user_id = vRP.getUserId({player})
  533. local nuser_id = vRP.getUserId({nplayer})
  534. if nuser_id ~= nil then
  535. vRPclient.isHandcuffed(nplayer,{}, function(handcuffed) -- check handcuffed
  536. if handcuffed then
  537. vRPclient.toggleHandcuff(nplayer,{})
  538. vRPclient.notify(player,{"~r~Você cortou a corda"})
  539. vRPbm.logInfoToFile("cordaLog.txt",user_id.." cortou as cordas das maos de "..nuser_id)
  540. elseif vRP.tryGetInventoryItem({user_id,"corda",1,false}) then
  541. vRPclient.notify(player,{"~g~Você usou uma corda"})
  542. vRPbm.logInfoToFile("cordaLog.txt",user_id.." colocou corda nas maos de "..nuser_id)
  543. vRPclient.toggleHandcuff(nplayer,{})
  544. else
  545. vRPclient.notify(player,{"~r~Você não tem uma corda"})
  546. end
  547. end)
  548. else
  549. vRPclient.notify(player,{"~r~Não tem pessoas próximas"})
  550. end
  551. end)
  552. end,"Amarrar a pessoa mais próxima"}
  553.  
  554. local player_capuz = {}
  555. local ch_capuz = {function(player,choice)
  556. local user_id = vRP.getUserId({player})
  557. vRPclient.getNearestPlayer(player, {10}, function(nplayer)
  558. local nuser_id = vRP.getUserId({nplayer})
  559. if nuser_id ~= nil then
  560. if player_capuz[nplayer] then
  561. player_capuz[nplayer] = nil
  562. vRPclient.removeDiv(nplayer,{"capuzcss"})
  563. vRPclient.setHandcuffed(nplayer,{false})
  564. vRPclient.notify(player,{"~r~Tirou o Capuz da pessoa."})
  565. vRPbm.logInfoToFile("capuzLog.txt",user_id.." tirou o capuz de "..nuser_id)
  566. else
  567. if vRP.tryGetInventoryItem({user_id,"capuz",1,false}) then
  568. player_capuz[nplayer] = true
  569. vRPclient.setDiv(nplayer,{"capuzcss",".div_capuzcss{ background-color: black; width: 100%; height: 100%;}",""})
  570. vRPclient.setHandcuffed(nplayer,{true})
  571. vRPbm.logInfoToFile("capuzLog.txt",user_id.." colocou capuz em "..nuser_id)
  572. vRP.closeMenu({nplayer})
  573. vRPclient.notify(player,{"~r~Colocou o Capuz na pessoa."})
  574. else
  575. vRPclient.notify(player,{"~r~Faltou 1 Capuz."})
  576. end
  577. end
  578. else
  579. vRPclient.notify(player,{"~r~Não tem ninguem próximo a você."})
  580. end
  581. end)
  582. end,"Amarrar a pessoa mais próxima"}
  583.  
  584. AddEventHandler("vRP:playerSpawn",function(user_id,source,first_spawn)
  585. player_capuz[source] = nil
  586. vRPclient.removeDiv(source,{"capuzcss"})
  587. vRPclient.setHandcuffed(source,{false})
  588. end)
  589.  
  590. -- player check
  591. local choice_player_check = {function(player,choice)
  592. vRPclient.getNearestPlayer(player,{5},function(nplayer)
  593. local nuser_id = vRP.getUserId({nplayer})
  594. if nuser_id ~= nil then
  595. vRPclient.notify(nplayer,{lang.police.menu.check.checked()})
  596. vRPclient.getWeapons(nplayer,{},function(weapons)
  597. -- prepare display data (money, items, weapons)
  598. local money = vRP.getMoney({nuser_id})
  599. local items = ""
  600. local data = vRP.getUserDataTable({nuser_id})
  601. if data and data.inventory then
  602. for k,v in pairs(data.inventory) do
  603. local item_name = vRP.getItemName({k})
  604. if item_name then
  605. items = items.."<br />"..item_name.." ("..v.amount..")"
  606. end
  607. end
  608. end
  609.  
  610. local weapons_info = ""
  611. for k,v in pairs(weapons) do
  612. weapons_info = weapons_info.."<br />"..k.." ("..v.ammo..")"
  613. end
  614.  
  615. vRPclient.setDiv(player,{"police_check",".div_police_check{ background-color: rgba(0,0,0,0.75); color: white; font-weight: bold; width: 500px; padding: 10px; margin: auto; margin-top: 150px; }",lang.police.menu.check.info({money,items,weapons_info})})
  616. -- request to hide div
  617. vRP.request({player, lang.police.menu.check.request_hide(), 1000, function(player,ok)
  618. vRPclient.removeDiv(player,{"police_check"})
  619. end})
  620. end)
  621. else
  622. vRPclient.notify(player,{lang.common.no_player_near()})
  623. end
  624. end)
  625. end, lang.police.menu.check.description()}
  626.  
  627. -- player store weapons
  628. local store_weapons_cd = {}
  629. function storeWeaponsCooldown()
  630. for user_id,cd in pairs(store_weapons_cd) do
  631. if cd > 0 then
  632. store_weapons_cd[user_id] = cd - 1
  633. end
  634. end
  635. SetTimeout(1000,function()
  636. storeWeaponsCooldown()
  637. end)
  638. end
  639. storeWeaponsCooldown()
  640. local choice_store_weapons = {function(player, choice)
  641. local user_id = vRP.getUserId({player})
  642. if (store_weapons_cd[user_id] == nil or store_weapons_cd[user_id] == 0) and user_id ~= nil then
  643. store_weapons_cd[user_id] = 5
  644. vRPclient.getWeapons(player,{},function(weapons)
  645. for k,v in pairs(weapons) do
  646. -- convert weapons to parametric weapon items
  647. vRP.giveInventoryItem({user_id, "wbody|"..k, 1, true})
  648. if v.ammo > 0 then
  649. vRP.giveInventoryItem({user_id, "wammo|"..k, v.ammo, true})
  650. end
  651. end
  652. -- clear all weapons
  653. vRPclient.giveWeapons(player,{{},true})
  654. BMclient.updateWeapons(player,{})
  655. end)
  656. else
  657. vRPclient.notify(player,{"~r~Você já está guardando suas armas."})
  658. end
  659. end, lang.police.menu.store_weapons.description()}
  660.  
  661. -- armor item
  662. vRP.defInventoryItem({"body_armor","Colete","Colete intacto.",
  663. function(args)
  664. local choices = {}
  665.  
  666. choices["Equipar"] = {function(player,choice)
  667. local user_id = vRP.getUserId({player})
  668. if user_id ~= nil then
  669. if vRP.tryGetInventoryItem({user_id, "body_armor", 1, true}) then
  670. BMclient.setArmour(player,{100,true})
  671. vRP.setUData({user_id,"vRP:bodyarmor",100})
  672. vRP.closeMenu({player})
  673. end
  674. end
  675. end}
  676.  
  677. return choices
  678. end,
  679. 5.00})
  680.  
  681. -- store armor
  682. local choice_store_armor = {function(player, choice)
  683. local user_id = vRP.getUserId({player})
  684. if user_id ~= nil then
  685. BMclient.getArmour(player,{},function(armour)
  686. if armour > 95 then
  687. vRP.giveInventoryItem({user_id, "body_armor", 1, true})
  688. -- clear armor
  689. BMclient.setArmour(player,{0,false})
  690. vRP.setUData({user_id,"vRP:bodyarmor",0})
  691. else
  692. vRPclient.notify(player, {"~r~Coletes danificados não podem ser armazenados!"})
  693. end
  694. end)
  695. end
  696. end, "Guardar Colete no inventário."}
  697.  
  698. local unjailed = {}
  699. function jail_clock(target_id,timer)
  700. local target = vRP.getUserSource({tonumber(target_id)})
  701. local users = vRP.getUsers({})
  702. local online = false
  703. for k,v in pairs(users) do
  704. if tonumber(k) == tonumber(target_id) then
  705. online = true
  706. end
  707. end
  708. if online then
  709. if timer>0 then
  710. vRPclient.notify(target, {"~r~Tempo restante: " .. timer .. " minuto(s)."})
  711. vRP.setUData({tonumber(target_id),"vRP:jail:time",json.encode(timer)})
  712. SetTimeout(60*1000, function()
  713. for k,v in pairs(unjailed) do -- check if player has been unjailed by cop or admin
  714. if v == tonumber(target_id) then
  715. unjailed[v] = nil
  716. timer = 0
  717. end
  718. end
  719. vRP.setHunger({tonumber(target_id), 0})
  720. vRP.setThirst({tonumber(target_id), 0})
  721. jail_clock(tonumber(target_id),timer-1)
  722. end)
  723. else
  724. BMclient.loadFreeze(target,{false,true,true})
  725. SetTimeout(15000,function()
  726. BMclient.loadFreeze(target,{false,false,false})
  727. end)
  728. vRPclient.teleport(target,{1788.18359375,2605.3415527344,45.564990997314}) -- teleport to outside jail
  729. vRPclient.setHandcuffed(target,{false})
  730. vRPclient.notify(target,{"~b~Você foi liberado."})
  731. vRP.setUData({tonumber(target_id),"vRP:jail:time",json.encode(-1)})
  732. end
  733. end
  734. end
  735.  
  736. -- dynamic jail
  737. local ch_jail = {function(player,choice)
  738. vRPclient.getNearestPlayers(player,{15},function(nplayers)
  739. local user_list = ""
  740. for k,v in pairs(nplayers) do
  741. user_list = user_list .. "[" .. vRP.getUserId({k}) .. "]" .. GetPlayerName(k) .. " | "
  742. end
  743. if user_list ~= "" then
  744. vRP.prompt({player,"Jogadores perto:" .. user_list,"",function(player,target_id)
  745. if target_id ~= nil and target_id ~= "" then
  746. vRP.prompt({player,"Tempo de prisão em minutos:","1",function(player,jail_time)
  747. if jail_time ~= nil and jail_time ~= "" then
  748. local target = vRP.getUserSource({tonumber(target_id)})
  749. if target ~= nil then
  750. if tonumber(jail_time) > 240 then
  751. jail_time = 240
  752. end
  753. if tonumber(jail_time) < 1 then
  754. jail_time = 1
  755. end
  756.  
  757. vRPclient.isHandcuffed(target,{}, function(handcuffed)
  758. if handcuffed then
  759. BMclient.loadFreeze(target,{false,true,true})
  760. SetTimeout(15000,function()
  761. BMclient.loadFreeze(target,{false,false,false})
  762. end)
  763. vRPclient.teleport(target,{1678.5402832031,2518.6350097656,-120.8498916626}) -- teleport to inside jail
  764. vRPclient.notify(target,{"~r~Você foi enviado para a prisão."})
  765. vRPclient.notify(player,{"~b~Você enviou um jogador para a prisão."})
  766. vRP.setHunger({tonumber(target_id),0})
  767. vRP.setThirst({tonumber(target_id),0})
  768. jail_clock(tonumber(target_id),tonumber(jail_time))
  769. local user_id = vRP.getUserId({player})
  770. vRPbm.logInfoToFile("jailLog.txt",user_id .. " apreendeu "..target_id.." por " .. jail_time .. " minutos")
  771. else
  772. vRPclient.notify(player,{"~r~Esse jogador não está algemado."})
  773. end
  774. end)
  775. else
  776. vRPclient.notify(player,{"~r~Essa ID parece inválida."})
  777. end
  778. else
  779. vRPclient.notify(player,{"~r~O tempo de prisão não pode estar vazia."})
  780. end
  781. end})
  782. else
  783. vRPclient.notify(player,{"~r~Nenhum ID de jogador selecionado."})
  784. end
  785. end})
  786. else
  787. vRPclient.notify(player,{"~r~Nenhum jogador próximo."})
  788. end
  789. end)
  790. end,"Envie um jogador próximo para a prisão."}
  791.  
  792. -- dynamic unjail
  793. local ch_unjail = {function(player,choice)
  794. vRP.prompt({player,"Player ID:","",function(player,target_id)
  795. if target_id ~= nil and target_id ~= "" then
  796. vRP.getUData({tonumber(target_id),"vRP:jail:time",function(value)
  797. if value ~= nil then
  798. custom = json.decode(value)
  799. if custom ~= nil then
  800. local user_id = vRP.getUserId({player})
  801. if tonumber(custom) > 0 or vRP.hasPermission({user_id,"admin.easy_unjail"}) then
  802. local target = vRP.getUserSource({tonumber(target_id)})
  803. if target ~= nil then
  804. unjailed[target] = tonumber(target_id)
  805. vRPclient.notify(player,{"~g~Target será lançado em breve."})
  806. vRPclient.notify(target,{"~g~Alguém abaixou sua sentença."})
  807. vRPbm.logInfoToFile("jailLog.txt",user_id .. " liberado "..target_id.." da sentença de " .. custom .. " minutos.")
  808. else
  809. vRPclient.notify(player,{"~r~Essa ID parece inválida."})
  810. end
  811. else
  812. vRPclient.notify(player,{"~r~O alvo não está preso."})
  813. end
  814. end
  815. end
  816. end})
  817. else
  818. vRPclient.notify(player,{"~r~Nenhum ID de jogador selecionado."})
  819. end
  820. end})
  821. end,"Libera um jogador preso."}
  822.  
  823. -- (server) called when a logged player spawn to check for vRP:jail in user_data
  824. AddEventHandler("vRP:playerSpawn", function(user_id, source, first_spawn)
  825. local target = vRP.getUserSource({user_id})
  826. SetTimeout(35000,function()
  827. local custom = {}
  828. vRP.getUData({user_id,"vRP:jail:time",function(value)
  829. if value ~= nil then
  830. custom = json.decode(value)
  831. if custom ~= nil then
  832. if tonumber(custom) > 0 then
  833. BMclient.loadFreeze(target,{false,true,true})
  834. SetTimeout(15000,function()
  835. BMclient.loadFreeze(target,{false,false,false})
  836. end)
  837. vRPclient.setHandcuffed(target,{true})
  838. vRPclient.teleport(target,{1641.5477294922,2570.4819335938,45.564788818359}) -- teleport inside jail
  839. vRPclient.notify(target,{"~r~Pague sua sentença."})
  840. vRP.setHunger({tonumber(user_id),0})
  841. vRP.setThirst({tonumber(user_id),0})
  842. vRPbm.logInfoToFile("jailLog.txt",user_id.." foi mandado para a prisão por " .. custom .. " para pagar sua sentença.")
  843. jail_clock(tonumber(user_id),tonumber(custom))
  844. end
  845. end
  846. end
  847. end})
  848. end)
  849. end)
  850.  
  851. -- dynamic fine
  852. local ch_fine = {function(player,choice)
  853. vRPclient.getNearestPlayers(player,{15},function(nplayers)
  854. local user_list = ""
  855. for k,v in pairs(nplayers) do
  856. user_list = user_list .. "[" .. vRP.getUserId({k}) .. "]" .. GetPlayerName(k) .. " | "
  857. end
  858. if user_list ~= "" then
  859. vRP.prompt({player,"Jogadores perto:" .. user_list,"",function(player,target_id)
  860. if target_id ~= nil and target_id ~= "" then
  861. vRP.prompt({player,"Preço da Multa:","100",function(player,fine)
  862. if fine ~= nil and fine ~= "" then
  863. vRP.prompt({player,"Motivo da Multa:","",function(player,reason)
  864. if reason ~= nil and reason ~= "" then
  865. local target = vRP.getUserSource({tonumber(target_id)})
  866. if target ~= nil then
  867. if tonumber(fine) > 100000 then
  868. fine = 100000
  869. end
  870. if tonumber(fine) < 0 then
  871. fine = 0
  872. end
  873.  
  874. if vRP.tryFullPayment({tonumber(target_id), tonumber(fine)}) then
  875. vRP.insertPoliceRecord({tonumber(target_id), lang.police.menu.fine.record({reason,fine})})
  876. vRPclient.notify(player,{lang.police.menu.fine.fined({reason,fine})})
  877. vRPclient.notify(target,{lang.police.menu.fine.notify_fined({reason,fine})})
  878. local user_id = vRP.getUserId({player})
  879. vRPbm.logInfoToFile("fineLog.txt",user_id .. " multou "..target_id.." em R$" .. fine .. " por ".. reason)
  880. vRP.closeMenu({player})
  881. else
  882. vRPclient.notify(player,{lang.money.not_enough()})
  883. end
  884. else
  885. vRPclient.notify(player,{"~r~Essa ID parece inválida."})
  886. end
  887. else
  888. vRPclient.notify(player,{"~r~Você não pode prender sem um motivo."})
  889. end
  890. end})
  891. else
  892. vRPclient.notify(player,{"~r~Sua multa tem que ter um valor."})
  893. end
  894. end})
  895. else
  896. vRPclient.notify(player,{"~r~Nenhum ID de jogador selecionado."})
  897. end
  898. end})
  899. else
  900. vRPclient.notify(player,{"~r~Nenhum jogador nas proximidades."})
  901. end
  902. end)
  903. end,"Multar um jogador próximo."}
  904.  
  905. -- improved handcuff
  906. local ch_handcuff = {function(player,choice)
  907. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  908. local nuser_id = vRP.getUserId({nplayer})
  909. if nuser_id ~= nil then
  910. vRPclient.toggleHandcuff(nplayer,{})
  911. local user_id = vRP.getUserId({player})
  912. vRPbm.logInfoToFile("jailLog.txt",user_id .. " algemou "..nuser_id)
  913. vRP.closeMenu({nplayer})
  914. else
  915. vRPclient.notify(player,{lang.common.no_player_near()})
  916. end
  917. end)
  918. end,lang.police.menu.handcuff.description()}
  919.  
  920. -- admin god mode
  921. local gods = {}
  922. function task_god()
  923. SetTimeout(10000, task_god)
  924.  
  925. for k,v in pairs(gods) do
  926. vRP.setHunger({v, 0})
  927. vRP.setThirst({v, 0})
  928.  
  929. local player = vRP.getUserSource({v})
  930. if player ~= nil then
  931. vRPclient.setHealth(player, {200})
  932. end
  933. end
  934. end
  935. task_god()
  936.  
  937. local ch_godmode = {function(player,choice)
  938. local user_id = vRP.getUserId({player})
  939. if user_id ~= nil then
  940. if gods[player] then
  941. gods[player] = nil
  942. vRPclient.notify(player,{"~r~Godmode desativado."})
  943. else
  944. gods[player] = user_id
  945. vRPclient.notify(player,{"~g~Godmode ativado."})
  946. end
  947. end
  948. end, "Ativa o admin godmode."}
  949.  
  950. function vRPbm.chargePhoneNumber(user_id,phone)
  951. local player = vRP.getUserSource({user_id})
  952. local directory_name = vRP.getPhoneDirectoryName({user_id, phone})
  953. if directory_name == "unknown" then
  954. directory_name = phone
  955. end
  956. vRP.prompt({player,"Valor a ser cobrado "..directory_name..":","0",function(player,charge)
  957. if charge ~= nil and charge ~= "" and tonumber(charge)>0 then
  958. vRP.getUserByPhone({phone, function(target_id)
  959. if target_id~=nil then
  960. if charge ~= nil and charge ~= "" then
  961. local target = vRP.getUserSource({target_id})
  962. if target ~= nil then
  963. vRP.getUserIdentity({user_id, function(identity)
  964. local my_directory_name = vRP.getPhoneDirectoryName({target_id, identity.phone})
  965. if my_directory_name == "unknown" then
  966. my_directory_name = identity.phone
  967. end
  968. local text = "~b~" .. my_directory_name .. "~w~ está cobrando você ~r~$" .. charge .. "~w~ por seus serviços."
  969. vRP.request({target,text,600,function(req_player,ok)
  970. if ok then
  971. local target_bank = vRP.getBankMoney({target_id}) - tonumber(charge)
  972. local my_bank = vRP.getBankMoney({user_id}) + tonumber(charge)
  973. if target_bank>0 then
  974. vRP.setBankMoney({user_id,my_bank})
  975. vRP.setBankMoney({target_id,target_bank})
  976. vRPclient.notify(player,{"Você cobrou ~y~$"..charge.." ~w~de ~b~"..directory_name .."~w~ pelos seus serviços."})
  977. vRPclient.notify(target,{"~b~"..my_directory_name.."~w~ cobrou você ~r~$"..charge.."~w~ por seus serviços."})
  978. vRPbm.logInfoToFile("mchargeLog.txt",user_id .. " cobrou de "..target_id.." a quantia de R$" .. charge .. ", SALDO DE "..user_id.." = R$"..my_bank.." e de "..target_id.." = R$"..target_bank)
  979. vRP.closeMenu({player})
  980. else
  981. vRPclient.notify(target,{lang.money.not_enough()})
  982. vRPclient.notify(player,{"~b~" .. directory_name .. "~w~ tentou, mas~r~ não pode~w~ pagar por seus serviços."})
  983. end
  984. else
  985. vRPclient.notify(player,{"~b~" .. directory_name .. "~r~ recusou-se~w~ a pagar pelos seus serviços."})
  986. end
  987. end})
  988. end})
  989. else
  990. vRPclient.notify(player,{"~r~Você não pode fazer cobranças para jogadores off-line."})
  991. end
  992. else
  993. vRPclient.notify(player,{"~r~Sua cobrança deve ter um valor."})
  994. end
  995. else
  996. vRPclient.notify(player,{"~r~Esse número de telefone parece inválido."})
  997. end
  998. end})
  999. else
  1000. vRPclient.notify(player,{"~r~O valor deve ser maior do que 0."})
  1001. end
  1002. end})
  1003. end
  1004.  
  1005. function vRPbm.payPhoneNumber(user_id,phone)
  1006. local player = vRP.getUserSource({user_id})
  1007. local directory_name = vRP.getPhoneDirectoryName({user_id, phone})
  1008. if directory_name == "unknown" then
  1009. directory_name = phone
  1010. end
  1011. vRP.prompt({player,"Quantidade a ser enviada para "..directory_name..":","0",function(player,transfer)
  1012. if transfer ~= nil and transfer ~= "" and tonumber(transfer)>0 then
  1013. vRP.getUserByPhone({phone, function(target_id)
  1014. local my_bank = vRP.getBankMoney({user_id}) - tonumber(transfer)
  1015. if target_id~=nil then
  1016. if my_bank >= 0 then
  1017. local target = vRP.getUserSource({target_id})
  1018. if target ~= nil then
  1019. vRP.setBankMoney({user_id,my_bank})
  1020. vRPclient.notify(player,{"~g~Você transferiu ~r~R$"..transfer.." ~g~para ~b~"..directory_name})
  1021. local target_bank = vRP.getBankMoney({target_id}) + tonumber(transfer)
  1022. vRP.setBankMoney({target_id,target_bank})
  1023. vRPbm.logInfoToFile("mpayLog.txt",user_id .. " pagou para "..target_id.." a quantidade de " .. transfer .. ",SALDO DE "..user_id.." = R$"..my_bank.." e de "..target_id.." = R$"..target_bank)
  1024. vRP.getUserIdentity({user_id, function(identity)
  1025. local my_directory_name = vRP.getPhoneDirectoryName({target_id, identity.phone})
  1026. if my_directory_name == "unknown" then
  1027. my_directory_name = identity.phone
  1028. end
  1029. vRPclient.notify(target,{"~g~Você recebeu ~y~$"..transfer.." ~g~de ~b~"..my_directory_name})
  1030. end})
  1031. vRP.closeMenu({player})
  1032. else
  1033. vRPclient.notify(player,{"~r~Você não pode fazer pagamentos para jogadores off-line."})
  1034. end
  1035. else
  1036. vRPclient.notify(player,{lang.money.not_enough()})
  1037. end
  1038. else
  1039. vRPclient.notify(player,{"~r~Esse número de telefone parece ser inválido."})
  1040. end
  1041. end})
  1042. else
  1043. vRPclient.notify(player,{"~r~O valor deve ser maior do que 0."})
  1044. end
  1045. end})
  1046. end
  1047.  
  1048. -- mobilepay
  1049. local ch_mobilepay = {function(player,choice)
  1050. local user_id = vRP.getUserId({player})
  1051. local menu = {}
  1052. menu.name = ""
  1053. menu.css = {}
  1054. menu.onclose = function(player) vRP.openMainMenu({player}) end -- nest menu
  1055. menu[">Digite o Número"] = {
  1056. -- payment function
  1057. function(player,choice)
  1058. vRP.prompt({player,"Número de telefone:","000-0000",function(player,phone)
  1059. if phone ~= nil and phone ~= "" then
  1060. vRPbm.payPhoneNumber(user_id,phone)
  1061. else
  1062. vRPclient.notify(player,{"~r~Você precisa digitar um número de telefone."})
  1063. end
  1064. end})
  1065. end,"Digite o número de telefone manualmente."}
  1066. local directory = vRP.getPhoneDirectory({user_id})
  1067. for k,v in pairs(directory) do
  1068. menu[k] = {
  1069. -- payment function
  1070. function(player,choice)
  1071. vRPbm.payPhoneNumber(user_id,v)
  1072. end
  1073. ,v} -- number as description
  1074. end
  1075. vRP.openMenu({player, menu})
  1076. end,"Transferir dinheiro através do telefone."}
  1077.  
  1078. -- mobilecharge
  1079. local ch_mobilecharge = {function(player,choice)
  1080. local user_id = vRP.getUserId({player})
  1081. local menu = {}
  1082. menu.name = ""
  1083. menu.css = {}
  1084. menu.onclose = function(player) vRP.openMainMenu({player}) end -- nest menu
  1085. menu[">Digite o Número"] = {
  1086. -- payment function
  1087. function(player,choice)
  1088. vRP.prompt({player,"Número de telefone:","000-0000",function(player,phone)
  1089. if phone ~= nil and phone ~= "" then
  1090. vRPbm.chargePhoneNumber(user_id,phone)
  1091. else
  1092. vRPclient.notify(player,{"~r~Você precisa digitar um número de telefone."})
  1093. end
  1094. end})
  1095. end,"Digite o número de telefone manualmente."}
  1096. local directory = vRP.getPhoneDirectory({user_id})
  1097. for k,v in pairs(directory) do
  1098. menu[k] = {
  1099. -- payment function
  1100. function(player,choice)
  1101. vRPbm.chargePhoneNumber(user_id,v)
  1102. end
  1103. ,v} -- number as description
  1104. end
  1105. vRP.openMenu({player, menu})
  1106. end,"Cobrar dinheiro pelo telefone."}
  1107.  
  1108. local ch_atlantisbank = {function(player,choice)
  1109. local user_id = vRP.getUserId({player})
  1110. local menu = {}
  1111. menu.name = ""
  1112. menu.css = {}
  1113.  
  1114. menu["Pagar"] = ch_mobilepay
  1115. menu["Cobrar"] = ch_mobilecharge
  1116. menu["Saldo"] = {function(player,choice)
  1117. local bankmoney = vRP.getBankMoney({user_id})
  1118. vRPclient.notify(player, {"~w~Seu Saldo atual é de ~g~R$"..bankmoney.."~w~."})
  1119. end, "Seu Saldo atual é de R$"..vRP.getBankMoney({user_id}).."."}
  1120.  
  1121. vRP.openMenu({player, menu})
  1122. end}
  1123.  
  1124. -- spawn vehicle
  1125. local ch_spawnveh = {function(player,choice)
  1126. vRP.prompt({player,"Vehicle Model:","",function(player,model)
  1127. if model ~= nil and model ~= "" then
  1128. BMclient.spawnVehicle(player,{model})
  1129. else
  1130. vRPclient.notify(player,{"~r~You have to type a vehicle model."})
  1131. end
  1132. end})
  1133. end,"Spawnar um modelo de veículo."}
  1134.  
  1135. -- lockpick vehicle
  1136. local ch_lockpickveh = {function(player,choice)
  1137. BMclient.lockpickVehicle(player,{20,true}) -- 20s to lockpick, allow to carjack unlocked vehicles (has to be true for NoCarJack Compatibility)
  1138. end,"Usar chave mestra no veículo mais próximo."}
  1139.  
  1140. -- dynamic freeze
  1141. local ch_freeze = {function(player,choice)
  1142. local user_id = vRP.getUserId({player})
  1143. if vRP.hasPermission({user_id,"admin.bm_freeze"}) then
  1144. vRP.prompt({player,"Player ID:","",function(player,target_id)
  1145. if target_id ~= nil and target_id ~= "" then
  1146. local target = vRP.getUserSource({tonumber(target_id)})
  1147. if target ~= nil then
  1148. vRPclient.notify(player,{"~g~Você descongelou esse player."})
  1149. BMclient.loadFreeze(target,{true,true,true})
  1150. else
  1151. vRPclient.notify(player,{"~r~Essa ID parece inválida."})
  1152. end
  1153. else
  1154. vRPclient.notify(player,{"~r~Nenhuma ID de player selecionada."})
  1155. end
  1156. end})
  1157. else
  1158. vRPclient.getNearestPlayer(player,{10},function(nplayer)
  1159. local nuser_id = vRP.getUserId({nplayer})
  1160. if nuser_id ~= nil then
  1161. vRPclient.notify(player,{"~g~Você descongelou esse player."})
  1162. BMclient.loadFreeze(nplayer,{true,false,false})
  1163. else
  1164. vRPclient.notify(player,{lang.common.no_player_near()})
  1165. end
  1166. end)
  1167. end
  1168. end,"Congelar player."}
  1169.  
  1170. local ch_admin_revive = {function(player,choice)
  1171. local user_id = vRP.getUserId({player})
  1172. if user_id ~= nil then
  1173. vRP.prompt({player,"ID para reviver:","",function(player,target_id)
  1174. local target_source = vRP.getUserSource({tonumber(target_id)})
  1175. if target_source ~= nil then
  1176. vRPclient.varyHealth(target_source, {100})
  1177. TriggerClientEvent('chatMessage', player, '', {255, 0, 0}, "user_id "..target_id.." foi revivido.", {0, 255, 0, 0.5})
  1178. else
  1179. TriggerClientEvent('chatMessage', player, '', {255, 0, 0}, "user_id "..target_id.." não foi encontrado.", {255, 0, 0, 0.5})
  1180. end
  1181. end})
  1182. end
  1183. end, "Revive o jogador pelo ID"}
  1184.  
  1185. local ch_admin_strength60 = {function(player,choice)
  1186. local user_id = vRP.getUserId({player})
  1187. if user_id ~= nil then
  1188. vRP.prompt({player,"ID para Setar Academia:","",function(player,target_id)
  1189. local target_source = vRP.getUserSource({tonumber(target_id)})
  1190. if target_source ~= nil then
  1191. vRP.setExp({tonumber(target_id), "physical", "strength", 120})
  1192. TriggerClientEvent('chatMessage', player, '', {255, 0, 0}, "user_id "..target_id.." teve o lvl da academia definido.", {0, 255, 0, 0.5})
  1193. else
  1194. TriggerClientEvent('chatMessage', player, '', {255, 0, 0}, "user_id "..target_id.." não foi encontrado.", {255, 0, 0, 0.5})
  1195. end
  1196. end})
  1197. end
  1198. end, "Restaura o lvl 6 da academia pelo ID"}
  1199.  
  1200. -- lockpicking item
  1201. vRP.defInventoryItem({"lockpicking_kit","Chave mestra","Usado para destrancar veículos.", nil,1.00})
  1202.  
  1203. -- ADD STATIC MENU CHOICES // STATIC MENUS NEED TO BE ADDED AT vRP/cfg/gui.lua
  1204. vRP.addStaticMenuChoices({"n1_policia_armas", n1_policia_armas}) -- police gear
  1205. vRP.addStaticMenuChoices({"n2_policia_armas", n2_policia_armas}) -- police gear
  1206. vRP.addStaticMenuChoices({"n3_policia_armas", n3_policia_armas}) -- police gear
  1207. vRP.addStaticMenuChoices({"n4_policia_armas", n4_policia_armas}) -- police gear
  1208. vRP.addStaticMenuChoices({"n5_policia_armas", n5_policia_armas}) -- police gear
  1209. vRP.addStaticMenuChoices({"n6_policia_armas", n6_policia_armas}) -- police gear
  1210. vRP.addStaticMenuChoices({"emergency_medkit", emergency_medkit}) -- pills and medkits
  1211. vRP.addStaticMenuChoices({"emergency_pilula", emergency_pilula}) -- pills and medkits
  1212. vRP.addStaticMenuChoices({"emergency_heal", emergency_heal}) -- heal button
  1213. vRP.addStaticMenuChoices({"uberEATS_item1", uberEATS_item1}) -- heal button
  1214. vRP.addStaticMenuChoices({"uberEATS_item2", uberEATS_item2}) -- heal button
  1215. vRP.addStaticMenuChoices({"gariItem", gariItem})
  1216. vRP.addStaticMenuChoices({"minItem", minItem})
  1217.  
  1218. -- REMEMBER TO ADD THE PERMISSIONS FOR WHAT YOU WANT TO USE
  1219. -- CREATES PLAYER SUBMENU AND ADD CHOICES
  1220. local ch_player_menu = {function(player,choice)
  1221. local user_id = vRP.getUserId({player})
  1222. local menu = {}
  1223. menu.name = ""
  1224. menu.css = {}
  1225. menu.onclose = function(player) vRP.openMainMenu({player}) end -- nest menu
  1226.  
  1227. if vRP.hasPermission({user_id,"player.store_money"}) then
  1228. menu["Guardar Dinheiro"] = choice_store_money -- transforms money in wallet to money in inventory to be stored in houses and cars
  1229. end
  1230.  
  1231. if vRP.hasPermission({user_id,"player.fix_haircut"}) then
  1232. menu["Desbugar"] = ch_fixhair -- just a work around for barbershop green hair bug while I am busy
  1233. end
  1234.  
  1235. if vRP.hasPermission({user_id,"player.amarrar"}) then
  1236. menu["Amarrar"] = choice_algemar
  1237. end
  1238.  
  1239. if vRP.hasPermission({user_id,"player.capuz"}) then
  1240. menu["Colocar capuz"] = ch_capuz
  1241. end
  1242.  
  1243. if vRP.hasPermission({user_id,"player.userlist"}) then
  1244. menu["Lista de players"] = ch_userlist -- a user list for players with vRP ids, player name and identity names only.
  1245. end
  1246.  
  1247. if vRP.hasPermission({user_id,"player.store_weapons"}) then
  1248. menu["Armas para inventário"] = choice_store_weapons -- store player weapons, like police store weapons from vrp
  1249. end
  1250.  
  1251. if vRP.hasPermission({user_id,"player.loot"}) then
  1252. menu["Retirar celular"] = ch_remphone
  1253. end
  1254.  
  1255. if vRP.hasPermission({user_id,"player.loot"}) then
  1256. menu["Saquear corpo"] = choice_loot
  1257. end
  1258.  
  1259. if vRP.hasPermission({user_id,"player.loot"}) then
  1260. menu["Roubar pessoa"] = choice_thiefnear
  1261. end
  1262.  
  1263. if vRP.hasPermission({user_id,"player.store_armor"}) then
  1264. menu["Guardar Colete"] = choice_store_armor -- store player armor
  1265. end
  1266.  
  1267. if vRP.hasPermission({user_id,"player.check"}) then
  1268. menu["Revistar"] = choice_player_check -- checks nearest player inventory, like police check from vrp
  1269. end
  1270.  
  1271. vRP.openMenu({player, menu})
  1272. end}
  1273.  
  1274. AddEventHandler('chatMessage', function(source, name, msg)
  1275. local player = source
  1276. if msg == "/jogador" then
  1277. local user_id = vRP.getUserId({player})
  1278. local menu = {}
  1279. menu.name = ""
  1280. menu.css = {}
  1281.  
  1282. if vRP.hasPermission({user_id,"player.store_money"}) then
  1283. menu["Guardar Dinheiro"] = choice_store_money -- transforms money in wallet to money in inventory to be stored in houses and cars
  1284. end
  1285.  
  1286. if vRP.hasPermission({user_id,"player.fix_haircut"}) then
  1287. menu["Desbugar"] = ch_fixhair -- just a work around for barbershop green hair bug while I am busy
  1288. end
  1289.  
  1290. if vRP.hasPermission({user_id,"player.amarrar"}) then
  1291. menu["Amarrar"] = choice_algemar
  1292. end
  1293.  
  1294. if vRP.hasPermission({user_id,"player.capuz"}) then
  1295. menu["Colocar capuz"] = ch_capuz
  1296. end
  1297.  
  1298. if vRP.hasPermission({user_id,"player.userlist"}) then
  1299. menu["Lista de players"] = ch_userlist -- a user list for players with vRP ids, player name and identity names only.
  1300. end
  1301.  
  1302. if vRP.hasPermission({user_id,"player.store_weapons"}) then
  1303. menu["Armas para inventário"] = choice_store_weapons -- store player weapons, like police store weapons from vrp
  1304. end
  1305.  
  1306. if vRP.hasPermission({user_id,"player.loot"}) then
  1307. menu["Retirar celular"] = ch_remphone
  1308. end
  1309.  
  1310. if vRP.hasPermission({user_id,"player.loot"}) then
  1311. menu["Saquear corpo"] = choice_loot
  1312. end
  1313.  
  1314. if vRP.hasPermission({user_id,"player.loot"}) then
  1315. menu["Roubar pessoa"] = choice_thiefnear
  1316. end
  1317.  
  1318. if vRP.hasPermission({user_id,"player.store_armor"}) then
  1319. menu["Guardar Colete"] = choice_store_armor -- store player armor
  1320. end
  1321.  
  1322. if vRP.hasPermission({user_id,"player.check"}) then
  1323. menu["Revistar"] = choice_player_check -- checks nearest player inventory, like police check from vrp
  1324. end
  1325.  
  1326. vRP.openMenu({player, menu})
  1327. end
  1328.  
  1329. if msg == "/desbugar" then
  1330. local custom = {}
  1331. local user_id = vRP.getUserId({player})
  1332. vRP.getUData({user_id,"vRP:head:overlay",function(value)
  1333. if value ~= nil then
  1334. custom = json.decode(value)
  1335. vRPbsC.setOverlay(player,{custom,true})
  1336. end
  1337. end})
  1338. vRP.getUData({user_id,"vRP:tattoos",function(value)
  1339. local tattoos = json.decode(value)
  1340. if tattoos ~= nil then
  1341. for k,v in pairs(tattoos) do
  1342. TSclient.drawTattoo(player,{k,v})
  1343. end
  1344. end
  1345. end})
  1346. end
  1347. end)
  1348.  
  1349. -- REGISTER MAIN MENU CHOICES
  1350. vRP.registerMenuBuilder({"main", function(add, data)
  1351. local user_id = vRP.getUserId({data.player})
  1352. if user_id ~= nil then
  1353. local choices = {}
  1354.  
  1355. if vRP.hasPermission({user_id,"player.player_menu"}) then
  1356. choices["Jogador"] = ch_player_menu -- opens player submenu
  1357. end
  1358.  
  1359. --[[if vRP.hasPermission({user_id,"toggle.service"}) then
  1360. choices["Serviços"] = choice_service -- toggle the receiving of missions
  1361. end
  1362.  
  1363. if vRP.hasPermission({user_id,"mugger.mug"}) then
  1364. choices["Assaltar"] = ch_mug -- steal nearest player wallet
  1365. end
  1366.  
  1367. if vRP.hasPermission({user_id,"hacker.hack"}) then
  1368. choices["Hackear"] = ch_hack -- 1 in 100 chance of stealing 1% of nearest player bank
  1369. end]]
  1370.  
  1371. add(choices)
  1372. end
  1373. end})
  1374.  
  1375. -- RESGISTER ADMIN MENU CHOICES
  1376. vRP.registerMenuBuilder({"admin", function(add, data)
  1377. local user_id = vRP.getUserId({data.player})
  1378. if user_id ~= nil then
  1379. local choices = {}
  1380.  
  1381. if vRP.hasPermission({user_id,"admin.deleteveh"}) then
  1382. choices["@DeleteVeh"] = ch_deleteveh -- Delete nearest vehicle (Fixed pull request https://github.com/Sighmir/vrp_basic_menu/pull/11/files/419405349ca0ad2a215df90cfcf656e7aa0f5e9c from benjatw)
  1383. end
  1384.  
  1385. if vRP.hasPermission({user_id,"admin.spawnveh"}) then
  1386. choices["@SpawnVeh"] = ch_spawnveh -- Spawn a vehicle model
  1387. end
  1388.  
  1389. if vRP.hasPermission({user_id,"admin.godmode"}) then
  1390. choices["@Godmode"] = ch_godmode -- Toggles admin godmode (Disable the default admin.god permission to use this!)
  1391. end
  1392.  
  1393. if vRP.hasPermission({user_id,"admin.reviver"}) then
  1394. choices["@Reviver ID"] = ch_admin_revive -- Toggles admin godmode (Disable the default admin.god permission to use this!)
  1395. end
  1396.  
  1397. if vRP.hasPermission({user_id,"admin.godmode"}) then
  1398. choices["@Restaurar Strength"] = ch_admin_strength60 -- Toggles admin godmode (Disable the default admin.god permission to use this!)
  1399. end
  1400.  
  1401. if vRP.hasPermission({user_id,"player.blips"}) then
  1402. choices["@Blips"] = ch_blips -- turn on map blips and sprites
  1403. end
  1404.  
  1405. if vRP.hasPermission({user_id,"player.sprites"}) then
  1406. choices["@Sprites"] = ch_sprites -- turn on only name sprites
  1407. end
  1408.  
  1409. if vRP.hasPermission({user_id,"admin.crun"}) then
  1410. choices["@Crun"] = ch_crun -- run any client command, any GTA V client native http://www.dev-c.com/nativedb/
  1411. end
  1412.  
  1413. if vRP.hasPermission({user_id,"admin.srun"}) then
  1414. choices["@Srun"] = ch_srun -- run any server command, any GTA V server native http://www.dev-c.com/nativedb/
  1415. end
  1416.  
  1417. if vRP.hasPermission({user_id,"player.tptowaypoint"}) then
  1418. choices["@TpToWaypoint"] = choice_tptowaypoint -- teleport user to map blip
  1419. end
  1420.  
  1421. if vRP.hasPermission({user_id,"admin.easy_unjail"}) then
  1422. choices["@UnJail"] = ch_unjail -- Un jails chosen player if he is jailed (Use admin.easy_unjail as permission to have this in admin menu working in non jailed players)
  1423. end
  1424.  
  1425. if vRP.hasPermission({user_id,"admin.spikes"}) then
  1426. choices["@Spikes"] = ch_spikes -- Toggle spikes
  1427. end
  1428.  
  1429. if vRP.hasPermission({user_id,"admin.bm_freeze"}) then
  1430. choices["@Freeze"] = ch_freeze -- Toggle freeze
  1431. end
  1432.  
  1433. add(choices)
  1434. end
  1435. end})
  1436.  
  1437. -- REGISTER POLICE MENU CHOICES
  1438. vRP.registerMenuBuilder({"police", function(add, data)
  1439. local user_id = vRP.getUserId({data.player})
  1440. if user_id ~= nil then
  1441. local choices = {}
  1442.  
  1443. if vRP.hasPermission({user_id,"police.store_money"}) then
  1444. choices["Guardar Dinheiro"] = choice_store_money -- transforms money in wallet to money in inventory to be stored in houses and cars
  1445. end
  1446.  
  1447. if vRP.hasPermission({user_id,"police.easy_jail"}) then
  1448. choices["Prender Por Tempo"] = ch_jail -- Send a nearby handcuffed player to jail with prompt for choice and user_list
  1449. end
  1450.  
  1451. if vRP.hasPermission({user_id,"police.easy_unjail"}) then
  1452. choices["Tirar da prisão"] = ch_unjail -- Un jails chosen player if he is jailed (Use admin.easy_unjail as permission to have this in admin menu working in non jailed players)
  1453. end
  1454.  
  1455. if vRP.hasPermission({user_id,"police.easy_fine"}) then
  1456. choices["Multar"] = ch_fine -- Fines closeby player
  1457. end
  1458.  
  1459. if vRP.hasPermission({user_id,"police.easy_cuff"}) then
  1460. choices["Algemar"] = ch_handcuff -- Toggle cufpm AND CLOSE MENU for nearby player
  1461. end
  1462.  
  1463. if vRP.hasPermission({user_id,"police.spikes"}) then
  1464. choices["Spikes"] = ch_spikes -- Toggle spikes
  1465. end
  1466.  
  1467. if vRP.hasPermission({user_id,"police.drag"}) then
  1468. choices["Arrastar"] = ch_drag -- Drags closest handcuffed player
  1469. end
  1470.  
  1471. if vRP.hasPermission({user_id,"police.drag"}) then
  1472. choices["Remover Telefone"] = ch_remphone -- Remove celular do mais proximo
  1473. end
  1474.  
  1475. if vRP.hasPermission({user_id,"police.bm_freeze"}) then
  1476. choices["Congelar"] = ch_freeze -- Toggle freeze
  1477. end
  1478.  
  1479. add(choices)
  1480. end
  1481. end})
  1482.  
  1483. vRP.registerMenuBuilder({"hotkeypolice", function(add, data)
  1484. local user_id = vRP.getUserId({data.player})
  1485. if user_id ~= nil then
  1486. local choices = {}
  1487.  
  1488. if vRP.hasPermission({user_id,"police.store_money"}) then
  1489. choices["Guardar Dinheiro"] = choice_store_money -- transforms money in wallet to money in inventory to be stored in houses and cars
  1490. end
  1491.  
  1492. if vRP.hasPermission({user_id,"police.easy_jail"}) then
  1493. choices["Prender Por Tempo"] = ch_jail -- Send a nearby handcuffed player to jail with prompt for choice and user_list
  1494. end
  1495.  
  1496. if vRP.hasPermission({user_id,"police.easy_unjail"}) then
  1497. choices["Tirar da prisão"] = ch_unjail -- Un jails chosen player if he is jailed (Use admin.easy_unjail as permission to have this in admin menu working in non jailed players)
  1498. end
  1499.  
  1500. if vRP.hasPermission({user_id,"police.easy_fine"}) then
  1501. choices["Multar Fácil"] = ch_fine -- Fines closeby player
  1502. end
  1503.  
  1504. if vRP.hasPermission({user_id,"police.easy_cuff"}) then
  1505. choices["Algemar"] = ch_handcuff -- Toggle cufpm AND CLOSE MENU for nearby player
  1506. end
  1507.  
  1508. if vRP.hasPermission({user_id,"police.spikes"}) then
  1509. choices["Spikes"] = ch_spikes -- Toggle spikes
  1510. end
  1511.  
  1512. if vRP.hasPermission({user_id,"police.drag"}) then
  1513. choices["Arrastar"] = ch_drag -- Drags closest handcuffed player
  1514. end
  1515.  
  1516. if vRP.hasPermission({user_id,"police.drag"}) then
  1517. choices["Remover Telefone"] = ch_remphone -- Remove celular do mais proximo
  1518. end
  1519.  
  1520. if vRP.hasPermission({user_id,"police.bm_freeze"}) then
  1521. choices["Congelar"] = ch_freeze -- Toggle freeze
  1522. end
  1523.  
  1524. add(choices)
  1525. end
  1526. end})
  1527.  
  1528. -- REGISTER FACCAO MENU CHOICES
  1529. vRP.registerMenuBuilder({"faccao", function(add, data)
  1530. local user_id = vRP.getUserId({data.player})
  1531. if user_id ~= nil then
  1532. local choices = {}
  1533.  
  1534. if vRP.hasPermission({user_id,"faccao.menu"}) then
  1535. choices["Saquear"] = choice_loot -- transforms money in wallet to money in inventory to be stored in houses and cars
  1536. end
  1537.  
  1538. add(choices)
  1539. end
  1540. end})
  1541.  
  1542. -- REGISTER EMERGENCIA MENU CHOICES
  1543. vRP.registerMenuBuilder({"faccao", function(add, data)
  1544. local user_id = vRP.getUserId({data.player})
  1545. if user_id ~= nil then
  1546. local choices = {}
  1547.  
  1548. if vRP.hasPermission({user_id,"faccao.menu"}) then
  1549. choices["Saquear"] = choice_loot -- transforms money in wallet to money in inventory to be stored in houses and cars
  1550. end
  1551.  
  1552. add(choices)
  1553. end
  1554. end})
  1555.  
  1556. -- REGISTER PHONE MENU CHOICES
  1557. -- TO USE THIS FUNCTION YOU NEED TO HAVE THE ORIGINAL vRP UPDATED TO THE LASTEST VERSION
  1558. vRP.registerMenuBuilder({"semnd", function(add) -- phone menu is created on server start, so it has no permissions.
  1559. local choices = {} -- Comment the choices you want to disable by adding -- in front of them.
  1560.  
  1561. choices["Damn Bank"] = ch_atlantisbank -- transfer money through phone
  1562.  
  1563. add(choices)
  1564. end})
Advertisement
Add Comment
Please, Sign In to add comment