Jump to content

alienwave

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by alienwave

  1. CLOSED: setTimeout(() => { }, 500) helps me;
  2. alienwave

    Disable chat

    In registration panel chat is not disabled. mp.gui.chat.show(false); and mp.gui.chat.activate(false); doesn't works. What should I do?
  3. CLOSED: USE player.call !!! https://wiki.rage.mp/index.php?title=Player::call
  4. I have a created client-side event, how can i call it on the server? client: mp.events.add("event", function() { // code }) server: function playerEnterColshapeHandler(player, shape) { if (shape == colshape) { // need call client event. } }
  5. For some reason, CarTuning.browser.execute(`getTuning();`); doesn't want to work. I'm tired, I'll try it tomorrow. My ds: alligatorBlood#6719
  6. Ok, I'll try it later and let you know
  7. My problem is that the browser code starts immediately when you log in to the server. As a result, I completely wrapped the browser code in a function Now I need to somehow run this function via execute ('function ();'), but it doesn't start https://pastebin.com/xNLZxGTE
  8. i have a key binder mp.keys.bind(CarTuning.keyCode, false, () => { if (player.vehicle) { if (CarTuning.windowOpen) { CarTuning.browser.active = false; mp.gui.cursor.show(false, false); CarTuning.windowOpen = !CarTuning.windowOpen; } else { mp.events.call("List"); CarTuning.browser.active = true; mp.gui.cursor.show(true, true); CarTuning.windowOpen = !CarTuning.windowOpen; } } else { mp.gui.chat.push("CAR ONLY!"); } });
  9. I have a key binder, mp.keys.bind(CarTuning.keyCode, false, () => { // f6 if (player.vehicle) { if (CarTuning.windowOpen) { CarTuning.browser.active = false; mp.gui.cursor.show(false, false); CarTuning.windowOpen = !CarTuning.windowOpen; } else { mp.events.call("startTun") && mp.events.call("List"); CarTuning.browser.active = true; mp.gui.cursor.show(true, true); CarTuning.windowOpen = !CarTuning.windowOpen; } } else { mp.gui.chat.push("NEED A CAR!"); } })
  10. While I'm not sitting in the car, the script is running in the browser, how do I fix it? I don't want the script to run in the browser until I get in the car. Please help me! https://jsfiddle.net/zk2qofuj/
  11. thank you!
  12. You can also use mp.gui.chat.push on the client
  13. If JS client: alert(); If JS server: console.log() or player.outputChatBox(); HTML: real browser, for example
  14. CLOSED: It works! mp.trigger("SelectVeh", params); in handler.js and mp.events.add("SelectVeh", () => { // some code });
  15. I was told here that you need to use mp.trigger() in handler.js
  16. I ran into the same problem, but I didn't find a solution
  17. my quote is marked as hidden( i'm fixed it, but it didn't help(
  18. I'm fixed it, but it didn't help
  19. I make handler, but it doesn't work. What should I do? https://pastebin.com/Bbge6rdn
  20. CLOSED: the solution is as follows const vehicle = mp.players.local.vehicle; mp.gui.chat.push(`hash: ${vehicle.getLayoutHash()}`);
  21. CLOSED: You need to convert decimal to hex using sites
  22. How can i convert decimal to HEX? By using the sites or have a function?
  23. const vehicle = mp.players.local.vehicle; mp.gui.chat.push(`hash: ${vehicle.getLayoutHash()}`); It works, thanks, but for some reason, the hash is just a set of numbers. For example: ZTYPE: 0x2D3BD401, AMGGT: 2228715155 ZTYPE is ok, but AMGGT...
  24. Thx, I'll try it later
×
×
  • Create New...