Jump to content

dimas1k

Members
  • Posts

    12
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dimas1k

  1. Can this be done through the config rpf files?
  2. May I know if you did it?
  3. show the structure of folders and files, and where is what code is, you most likely do not correctly call events.
  4. try like this let browser = null; mp.events.add("client:openATM", () => { browser = mp.browsers.new("package://example"); // other code }); mp.events.add("client:closeATM", () => { browser.destroy(); browser = null; // other code });
  5. 1. Show what you have on line 23; 2. Have you tried commenting out "browser.destroy ();", the error persists?
  6. Here (https://wiki.rage.mp/index.php?title=Interiors_and_Locations) the entire list of available interiors and locations, or where can I get a complete list?
      • 1
      • Like
  7. I meant the official definitions of TypesScript from RAGE.MP
  8. Look what you can replace this `forEachByType`, I can't do it now. // client-side mp.dummies.forEachByType(1001, (entity) => { mp.game.object.doorControl( entity.getVariable("doorHash"), entity.getVariable("x"), entity.getVariable("y"), entity.getVariable("z"), entity.getVariable("locked"), entity.getVariable("p5"), entity.getVariable("p6"), entity.getVariable("p7") ); }); // server-side // interface (id: number, dimension: number, values: {}) mp.dummies.new(1001, 0, { // fill in your details doorHash: '', x = 0.0, y = 0.0, z = 0.0, locked: false, p5 = 0.0, p6 = 0.0, p7 = 0.0, });
  9. You need to sync them with `mp.dummies`. I cannot show an example now.
  10. TypeScript definition will only for client-side for `mp.game`, will there be other definitions?
×
×
  • Create New...