Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.19 KB | None | 0 0
  1. $(document).ready(() => {
  2. var playerItems = [{
  3. text: "Thêm bạn",
  4. icon: "handshake.png"
  5. },
  6. {
  7. text: "Giao dịch",
  8. icon: "trade.png"
  9. },
  10. {
  11. text: "Giấy tờ",
  12. icon: "card.png"
  13. },
  14. ];
  15. var vehicleItems = [{
  16. text: "Làm đầy"
  17. }, ];
  18.  
  19. window.interactionMenuAPI = {
  20. showPlayerMenu: (data = null) => {
  21. data = JSON.parse(data);
  22. $("#interactionMenu").empty();
  23. for (var i = 0; i < playerItems.length; i++) {
  24. var info = playerItems[i];
  25. var iconName = (info.icon) ? info.icon : "default.png";
  26. var itemEl = $(`<div class="interaction_item"><div class="icon"><img src="img/interactionMenu/${iconName}"/>
  27. </div><div class="text">${info.text}</div></div>
  28. `);
  29. $("#interactionMenu").append(itemEl);
  30. }
  31. addictivePlayerItems(data);
  32. slideItems();
  33. initPlayerItemsHandler();
  34.  
  35. $("#interactionMenu").fadeIn("fast");
  36. },
  37. showVehicleMenu: (data = null) => {
  38. data = JSON.parse(data);
  39. $("#interactionMenu").empty();
  40. for (var i = 0; i < vehicleItems.length; i++) {
  41. var info = vehicleItems[i];
  42. var iconName = (info.icon) ? info.icon : "default.png";
  43. var itemEl = $(`<div class="interaction_item"><div class="icon"><img src="img/interactionMenu/${iconName}"/>
  44. </div><div class="text">${info.text}</div></div>
  45. `);
  46. $("#interactionMenu").append(itemEl);
  47. }
  48. addictiveVehicleItems(data);
  49. slideItems();
  50. initVehicleItemsHandler();
  51.  
  52. $("#interactionMenu").fadeIn("fast");
  53. },
  54. addItem: (iconName, text) => {
  55. var itemEl = $(`<div class="interaction_item"><div class="icon"><img src="img/interactionMenu/${iconName}"/>
  56. </div><div class="text">${text}</div></div>
  57. `);
  58. $("#interactionMenu").append(itemEl);
  59. },
  60. addBeforeItem: (iconName, text) => {
  61. var itemEl = $(`<div class="interaction_item"><div class="icon"><img src="img/interactionMenu/${iconName}"/>
  62. </div><div class="text">${text}</div></div>
  63. `);
  64. $("#interactionMenu").prepend(itemEl);
  65. },
  66. active: () => {
  67. return $("#interactionMenu").css("display") != "none";
  68. },
  69. clear: () => {
  70. $("#interactionMenu").empty();
  71. },
  72. hide: () => {
  73. $("#interactionMenu").fadeOut("fast");
  74. lastAction = null;
  75. },
  76. move: (x, y) => {
  77. //debug(`interactionMenuAPI.move: ${x} ${y}`)
  78. $("#interactionMenu").css("left", x + "%");
  79. $("#interactionMenu").css("top", y + "%");
  80. },
  81. };
  82.  
  83. /* for tests */
  84. //interactionMenuAPI.showVehicleMenu();
  85. });
  86.  
  87. var lastAction;
  88.  
  89. /* Чтобы пункты меню не были на одном уровне от левого края. */
  90. function slideItems() {
  91. var itemsCount = $("#interactionMenu .interaction_item").length;
  92. var slidePx = 10;
  93. for (var i = 0; i < parseInt((itemsCount - 1) / 2); i++) {
  94. var itemElA = $($("#interactionMenu .interaction_item")[1 + i]);
  95. var itemElB = $($("#interactionMenu .interaction_item")[itemsCount - i - 2]);
  96. itemElA.css("margin-left", slidePx + "px");
  97. itemElB.css("margin-left", slidePx + "px");
  98. slidePx += 10;
  99. }
  100. }
  101.  
  102. /* Добавляем/удаляем пункты, в зависимости от данных. */
  103. function addictivePlayerItems(data) {
  104. if (!data) data = {};
  105. if (data.action == "showDocuments") {
  106. $("#interactionMenu").empty();
  107. var items = [{
  108. text: "Hộ chiếu",
  109. icon: "card.png"
  110. },
  111. {
  112. text: "Giấy phép",
  113. icon: "card.png"
  114. },
  115. {
  116. text: "Lấy từ thư viện",
  117. icon: "card.png"
  118. },
  119. {
  120. text: "Lao động",
  121. icon: "card.png"
  122. },
  123. ];
  124. var factions = [2, 3, 4, 5, 6, 7]; // организации с удостоверениями
  125. if (factions.indexOf(clientStorage.faction) != -1) items.push({
  126. text: "Chứng chỉ",
  127. icon: "card.png"
  128. });
  129. for (var i = 0; i < items.length; i++) {
  130. var info = items[i];
  131. var iconName = (info.icon) ? info.icon : "default.png";
  132. interactionMenuAPI.addItem(iconName, info.text);
  133. }
  134. } else if (data.action == "showLeader") {
  135. $("#interactionMenu").empty();
  136. var items = [{
  137. text: "Mời vào tổ chức",
  138. icon: "default.png"
  139. },
  140. {
  141. text: "Nâng cấp bậc",
  142. icon: "default.png"
  143. },
  144. {
  145. text: "Hạ cấp bậc",
  146. icon: "default.png"
  147. },
  148. {
  149. text: "Giải tán tổ chức",
  150. icon: "default.png"
  151. },
  152. ];
  153. for (var i = 0; i < items.length; i++) {
  154. var info = items[i];
  155. var iconName = (info.icon) ? info.icon : "default.png";
  156. interactionMenuAPI.addItem(iconName, info.text);
  157. }
  158. } else if (data.action == "showFaction") {
  159. $("#interactionMenu").empty();
  160. var list = {
  161. '1': [{
  162. text: "todo",
  163. icon: "default.png"
  164. }, ],
  165. '2': [{
  166. text: "Còng tay",
  167. icon: "default.png"
  168. },
  169. {
  170. text: "Lục soát",
  171. icon: "default.png"
  172. },
  173. {
  174. text: "Dẫn độ",
  175. icon: "default.png"
  176. },
  177. {
  178. text: "Bỏ vào xe",
  179. icon: "default.png"
  180. },
  181. {
  182. text: "Bắt giữ",
  183. icon: "default.png"
  184. },
  185. {
  186. text: "Phạt",
  187. icon: "default.png"
  188. },
  189. ],
  190. '3': [{
  191. text: "Còng tay",
  192. icon: "default.png"
  193. },
  194. {
  195. text: "Lục soát",
  196. icon: "default.png"
  197. },
  198. {
  199. text: "Вести за собой",
  200. icon: "default.png"
  201. },
  202. {
  203. text: "Посадить в авто",
  204. icon: "default.png"
  205. },
  206. {
  207. text: "Арестовать",
  208. icon: "default.png"
  209. },
  210. {
  211. text: "Штраф",
  212. icon: "default.png"
  213. },
  214. ],
  215. '4': [{
  216. text: "Наручники",
  217. icon: "default.png"
  218. },
  219. {
  220. text: "Розыск",
  221. icon: "default.png"
  222. },
  223. {
  224. text: "Вести за собой",
  225. icon: "default.png"
  226. },
  227. {
  228. text: "Посадить в авто",
  229. icon: "default.png"
  230. },
  231. {
  232. text: "Арестовать",
  233. icon: "default.png"
  234. },
  235. // {
  236. // text: "Прикрепить жучок",
  237. // icon: "default.png"
  238. // },
  239. // {
  240. // text: "Обыскать",
  241. // icon: "default.png"
  242. // },
  243. ],
  244. '5': [{
  245. text: "Вылечить",
  246. icon: "default.png"
  247. },
  248. {
  249. text: "Показать удостоверение",
  250. icon: "default.png"
  251. }
  252. ],
  253. '6': [{
  254. text: "todo",
  255. icon: "default.png"
  256. }, ],
  257. '7': [{
  258. text: "todo",
  259. icon: "default.png"
  260. }, ],
  261. '8': [{
  262. text: "todo",
  263. icon: "default.png"
  264. }, ],
  265. '9': [{
  266. text: "todo",
  267. icon: "default.png"
  268. }, ],
  269. '10': [{
  270. text: "todo",
  271. icon: "default.png"
  272. }, ],
  273. '11': [{
  274. text: "todo",
  275. icon: "default.png"
  276. }, ],
  277. '12': [{
  278. text: "todo",
  279. icon: "default.png"
  280. }, ],
  281. '13': [{
  282. text: "todo",
  283. icon: "default.png"
  284. }, ],
  285. '14': [{
  286. text: "todo",
  287. icon: "default.png"
  288. }, ],
  289. '15': [{
  290. text: "todo",
  291. icon: "default.png"
  292. }, ],
  293. '16': [{
  294. text: "todo",
  295. icon: "default.png"
  296. }, ],
  297. '17': [{
  298. text: "todo",
  299. icon: "default.png"
  300. }, ],
  301. };
  302. if (list[clientStorage.faction]) {
  303. var items = list[clientStorage.faction];
  304. for (var i = 0; i < items.length; i++) {
  305. var info = items[i];
  306. var iconName = (info.icon) ? info.icon : "default.png";
  307. interactionMenuAPI.addItem(iconName, info.text);
  308. }
  309. }
  310. } else if (data.action == "showLocal") {
  311. $("#interactionMenu").empty();
  312. var items = [{
  313. text: "Эмоции",
  314. icon: "default.png"
  315. },
  316. {
  317. text: "Походка",
  318. icon: "default.png"
  319. },
  320. {
  321. text: "Анимации",
  322. icon: "default.png"
  323. },
  324. ];
  325. for (var i = 0; i < items.length; i++) {
  326. var info = items[i];
  327. var iconName = (info.icon) ? info.icon : "default.png";
  328. interactionMenuAPI.addItem(iconName, info.text);
  329. }
  330. } else if (data.action == "showEmotions") {
  331. $("#interactionMenu").empty();
  332. var items = [{
  333. text: "Обычный",
  334. icon: "default.png"
  335. },
  336. {
  337. text: "Угрюмый",
  338. icon: "default.png"
  339. },
  340. {
  341. text: "Сердитый",
  342. icon: "default.png"
  343. },
  344. {
  345. text: "Счастливый",
  346. icon: "default.png"
  347. },
  348. {
  349. text: "Стресс",
  350. icon: "default.png"
  351. },
  352. {
  353. text: "Надутый",
  354. icon: "default.png"
  355. },
  356. ];
  357. for (var i = 0; i < items.length; i++) {
  358. var info = items[i];
  359. var iconName = (info.icon) ? info.icon : "default.png";
  360. interactionMenuAPI.addItem(iconName, info.text);
  361. }
  362. } else if (data.action == "showWalking") {
  363. $("#interactionMenu").empty();
  364. var items = [{
  365. text: "Нормальная",
  366. icon: "default.png"
  367. },
  368. {
  369. text: "Храбрый",
  370. icon: "default.png"
  371. },
  372. {
  373. text: "Уверенный",
  374. icon: "default.png"
  375. },
  376. {
  377. text: "Гангстер",
  378. icon: "default.png"
  379. },
  380. {
  381. text: "Быстрый",
  382. icon: "default.png"
  383. },
  384. {
  385. text: "Грустный",
  386. icon: "default.png"
  387. },
  388. {
  389. text: "Крылатый",
  390. icon: "default.png"
  391. },
  392. ];
  393. for (var i = 0; i < items.length; i++) {
  394. var info = items[i];
  395. var iconName = (info.icon) ? info.icon : "default.png";
  396. interactionMenuAPI.addItem(iconName, info.text);
  397. }
  398. } else if (data.action == "showAnimations") {
  399. $("#interactionMenu").empty();
  400.  
  401. var list = {
  402. '-1': [{
  403. text: "Жесты",
  404. icon: "default.png"
  405. },
  406. {
  407. text: "Спорт",
  408. icon: "default.png"
  409. },
  410. {
  411. text: "Поза лёжа",
  412. icon: "default.png"
  413. },
  414. {
  415. text: "Поза сидя",
  416. icon: "default.png"
  417. },
  418. {
  419. text: "Испугано",
  420. icon: "default.png"
  421. },
  422. {
  423. text: "Танец",
  424. icon: "default.png"
  425. },
  426. {
  427. text: "Курение",
  428. icon: "default.png"
  429. },
  430. ],
  431. '0': [{
  432. text: "Показывает фак",
  433. icon: "default.png"
  434. },
  435. {
  436. text: "Рок двумя руками",
  437. icon: "default.png"
  438. },
  439. {
  440. text: "Рок одной рукой",
  441. icon: "default.png"
  442. },
  443. {
  444. text: "Два пальца",
  445. icon: "default.png"
  446. },
  447. {
  448. text: "Бурные аплодисменты",
  449. icon: "default.png"
  450. },
  451. {
  452. text: "Анимация дрочки",
  453. icon: "default.png"
  454. },
  455. ],
  456. '1': [{
  457. text: "Подтягивания",
  458. icon: "default.png"
  459. },
  460. {
  461. text: "Тягает штангу лёжа",
  462. icon: "default.png"
  463. },
  464. {
  465. text: "Тягает штангу стоя",
  466. icon: "default.png"
  467. },
  468. {
  469. text: "Отжимания",
  470. icon: "default.png"
  471. },
  472. {
  473. text: "Качает пресс",
  474. icon: "default.png"
  475. },
  476. ],
  477. '2': [{
  478. text: "Спит",
  479. icon: "default.png"
  480. },
  481. {
  482. text: "Спит развалив руки",
  483. icon: "default.png"
  484. },
  485. {
  486. text: "Спит сжавшись в клубок",
  487. icon: "default.png"
  488. },
  489. ],
  490. '3': [{
  491. text: "Скорчился в клубок",
  492. icon: "default.png"
  493. },
  494. {
  495. text: "Сидит разглядывая что-то",
  496. icon: "default.png"
  497. },
  498. {
  499. text: "Сидит со стаканом и пьёт",
  500. icon: "default.png"
  501. },
  502. {
  503. text: "Сидит свободно раздвинув ноги",
  504. icon: "default.png"
  505. },
  506. {
  507. text: "Сидит рука на руке",
  508. icon: "default.png"
  509. },
  510. ],
  511. '4': [{
  512. text: "Стоя закрывается руками",
  513. icon: "default.png"
  514. },
  515. {
  516. text: "Закрывается руками и осм.",
  517. icon: "default.png"
  518. },
  519. {
  520. text: "Нагнувшись закрывается руками",
  521. icon: "default.png"
  522. },
  523. {
  524. text: "Нагнувшись осм. по сторонам",
  525. icon: "default.png"
  526. },
  527. {
  528. text: "Сжимается в клубок",
  529. icon: "default.png"
  530. },
  531. {
  532. text: "Сидя закрывается руками осм.",
  533. icon: "default.png"
  534. },
  535. {
  536. text: "Оглядывается по сторонам и трясётся",
  537. icon: "default.png"
  538. },
  539. {
  540. text: "Сидя на картах закрывшись кулаками",
  541. icon: "default.png"
  542. },
  543. {
  544. text: "Сидя на картах испугано злится",
  545. icon: "default.png"
  546. },
  547. ],
  548. '5': [{
  549. text: "Трясёт руками",
  550. icon: "default.png"
  551. },
  552. {
  553. text: "Облакотился на стену",
  554. icon: "default.png"
  555. },
  556. {
  557. text: "Танцует тряся тазом",
  558. icon: "default.png"
  559. },
  560. ],
  561. '6': [{
  562. text: "Берёт в руки сигарету",
  563. icon: "default.png"
  564. },
  565. ],
  566. };
  567.  
  568. if (list[data.index]) {
  569. var items = list[data.index];
  570. for (var i = 0; i < items.length; i++) {
  571. var info = items[i];
  572. var iconName = (info.icon) ? info.icon : "default.png";
  573. interactionMenuAPI.addItem(iconName, info.text);
  574. }
  575. }
  576. } else {
  577. if (clientStorage.faction > 0) {
  578. interactionMenuAPI.addItem("default.png", "Организация");
  579. }
  580. if (clientStorage.factionRank >= clientStorage.factionLastRank) {
  581. interactionMenuAPI.addItem("default.png", "Лидер");
  582. }
  583. if (clientStorage.trashLeader === 1) {
  584. interactionMenuAPI.addItem("default.png", "Пригласить в бригаду");
  585. }
  586. if (clientStorage.trashLeader === 2) {
  587. interactionMenuAPI.addItem("default.png", "Уволить из бригады");
  588. }
  589. if (clientStorage.gopostalLeader === 1) {
  590. interactionMenuAPI.addItem("default.png", "Пригласить в группу");
  591. }
  592. if (clientStorage.gopostalLeader === 2) {
  593. interactionMenuAPI.addItem("default.png", "Уволить из группы");
  594. }
  595. if (data.showTransferProducts) {
  596. interactionMenuAPI.addItem("default.png", "Передать товар");
  597. }
  598. }
  599. }
  600.  
  601. /* Добавляем/удаляем пункты, в зависимости от данных. */
  602. function addictiveVehicleItems(data) {
  603. if (!data) data = {};
  604. //debug(`data: ${JSON.stringify(data)}`)
  605. if (data.action == "showFaction") {
  606. $("#interactionMenu").empty();
  607. var list = {
  608. '1': [{
  609. text: "todo",
  610. icon: "default.png"
  611. }, ],
  612. '2': [{
  613. text: "Вскрыть",
  614. icon: "default.png"
  615. },
  616. {
  617. text: "Вытолкнуть",
  618. icon: "default.png"
  619. },
  620. ],
  621. '3': [{
  622. text: "Вскрыть",
  623. icon: "default.png"
  624. },
  625. {
  626. text: "Вытолкнуть",
  627. icon: "default.png"
  628. },
  629. ],
  630. '4': [{
  631. text: "todo",
  632. icon: "default.png"
  633. }, ],
  634. '5': [{
  635. text: "todo",
  636. icon: "default.png"
  637. }, ],
  638. '6': [{
  639. text: "todo",
  640. icon: "default.png"
  641. }, ],
  642. '7': [{
  643. text: "todo",
  644. icon: "default.png"
  645. }, ],
  646. '8': [{
  647. text: "todo",
  648. icon: "default.png"
  649. }, ],
  650. '9': [{
  651. text: "todo",
  652. icon: "default.png"
  653. }, ],
  654. '10': [{
  655. text: "todo",
  656. icon: "default.png"
  657. }, ],
  658. '11': [{
  659. text: "todo",
  660. icon: "default.png"
  661. }, ],
  662. '12': [{
  663. text: "todo",
  664. icon: "default.png"
  665. }, ],
  666. '13': [{
  667. text: "todo",
  668. icon: "default.png"
  669. }, ],
  670. '14': [{
  671. text: "todo",
  672. icon: "default.png"
  673. }, ],
  674. '15': [{
  675. text: "todo",
  676. icon: "default.png"
  677. }, ],
  678. '16': [{
  679. text: "todo",
  680. icon: "default.png"
  681. }, ],
  682. '17': [{
  683. text: "todo",
  684. icon: "default.png"
  685. }, ],
  686. };
  687. if (list[clientStorage.faction]) {
  688. var items = list[clientStorage.faction];
  689. for (var i = 0; i < items.length; i++) {
  690. var info = items[i];
  691. var iconName = (info.icon) ? info.icon : "default.png";
  692. interactionMenuAPI.addItem(iconName, info.text);
  693. }
  694. }
  695. } else if (data.action == "removeFromVehicle") {
  696. $("#interactionMenu").empty();
  697. for (var i = 0; i < data.names.length; i++) {
  698. var name = data.names[i];
  699. var iconName = "default.png";
  700. interactionMenuAPI.addItem(iconName, name);
  701. }
  702. lastAction = "removeFromVehicle";
  703. } else if (clientStorage.faction > 0) {
  704. interactionMenuAPI.addItem("default.png", "Организация");
  705. }
  706.  
  707. if (data.action == "showDoors") {
  708. interactionMenuAPI.addBeforeItem("default.png", "Двери");
  709. } else if (data.action == "showHood") {
  710. interactionMenuAPI.addBeforeItem("default.png", "Капот");
  711. } else if (data.action == "showBoot") {
  712. interactionMenuAPI.addBeforeItem("default.png", "Багажник");
  713. if (data.showProducts) interactionMenuAPI.addItem("default.png", "Товар");
  714. } else if (data.action == "showEnter") {
  715. $("#interactionMenu").empty();
  716. interactionMenuAPI.addItem("default.png", "Выкинуть из транспорта");
  717. interactionMenuAPI.addItem("default.png", "Открыть/Закрыть транспорт");
  718. // interactionMenuAPI.addItem("default.png", "Открыть/Закрыть капот");
  719. // interactionMenuAPI.addItem("default.png", "Открыть/Закрыть багажник");
  720. }
  721. }
  722.  
  723. /* Установка обработчиков на пункты меню взаимодействия с игроком. */
  724. function initPlayerItemsHandler() {
  725. $("#interactionMenu .interaction_item").each((index, el) => {
  726. $(el).click((e) => {
  727. onClickPlayerItem($(el).find(".text").text());
  728. });
  729. });
  730. }
  731.  
  732. /* Установка обработчиков на пункты меню взаимодействия с авто. */
  733. function initVehicleItemsHandler() {
  734. $("#interactionMenu .interaction_item").each((index, el) => {
  735. $(el).click((e) => {
  736. onClickVehicleItem($(el).find(".text").text());
  737. });
  738. });
  739. }
  740.  
  741. /* Вызывается при клике на меню взаимодействия с игроком. */
  742. function onClickPlayerItem(itemName) {
  743. //console.log(`onClickPlayerItem: ${itemName}`);
  744. if (itemName == "Показать документы") {
  745. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  746. action: "showDocuments"
  747. }));
  748. return;
  749. } else if (itemName == "Лидер") {
  750. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  751. action: "showLeader"
  752. }));
  753. return;
  754. } else if (itemName == "Организация") {
  755. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  756. action: "showFaction"
  757. }));
  758. return;
  759. } else if (itemName == "Эмоции") {
  760. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  761. action: "showEmotions"
  762. }));
  763. return;
  764. } else if (itemName == "Походка") {
  765. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  766. action: "showWalking"
  767. }));
  768. return;
  769. } else if (itemName == "Анимации") {
  770. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  771. action: "showAnimations",
  772. index: -1
  773. }));
  774. return;
  775. } else if (itemName == "Жесты") {
  776. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  777. action: "showAnimations",
  778. index: 0
  779. }));
  780. return;
  781. } else if (itemName == "Спорт") {
  782. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  783. action: "showAnimations",
  784. index: 1
  785. }));
  786. return;
  787. } else if (itemName == "Поза лёжа") {
  788. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  789. action: "showAnimations",
  790. index: 2
  791. }));
  792. return;
  793. } else if (itemName == "Поза сидя") {
  794. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  795. action: "showAnimations",
  796. index: 3
  797. }));
  798. return;
  799. } else if (itemName == "Испугано") {
  800. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  801. action: "showAnimations",
  802. index: 4
  803. }));
  804. return;
  805. } else if (itemName == "Танец") {
  806. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  807. action: "showAnimations",
  808. index: 5
  809. }));
  810. return;
  811. } else if (itemName == "Курение") {
  812. interactionMenuAPI.showPlayerMenu(JSON.stringify({
  813. action: "showAnimations",
  814. index: 6
  815. }));
  816. return;
  817. }
  818.  
  819. mp.trigger(`interactionMenu.onClickPlayerItem`, itemName);
  820. }
  821.  
  822. /* Вызывается при клике на меню взаимодействия с авто. */
  823. function onClickVehicleItem(itemName) {
  824. //console.log(`onClickVehicleItem: ${itemName}`);
  825. if (itemName == "Организация") {
  826. interactionMenuAPI.showVehicleMenu(JSON.stringify({
  827. action: "showFaction"
  828. }));
  829. return;
  830. } else if (lastAction == "removeFromVehicle") {
  831. mp.trigger(`events.callRemote`, `removeFromVehicle`, itemName);
  832. interactionMenuAPI.hide();
  833. }
  834. mp.trigger(`interactionMenu.onClickVehicleItem`, itemName);
  835. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement