Forums

  1. RAGE Multiplayer

    1. 219
      posts
    2. 955
      posts
    3. 558
      posts
    4. RDR2 Multiplayer   (15946 visits to this link)

  2. Scripting

    1. 3541
      posts
    2. 3213
      posts
  3. Community

    1. 3771
      posts
    2. 805
      posts
    3. 77
      posts
  4. Non-English

    1. 4900
      posts
    2. 248
      posts
    3. 2646
      posts
    4. 307
      posts
    5. 340
      posts
    6. 93
      posts
    7. 83
      posts
  • Posts

    • Thanks guys, I will pay more attention next time, I managed to solve the problem in a simple way, after many hours.   I was saving the hair in the database, I called the event at the time I needed it and when the user enters the character he changes the hair according to the database. mp.events.add("hairIde", function (player, idTest) {       connection.query("SELECT hairID FROM char_test WHERE user_login = ?", [player.socialClub], function (e, results) {         if (results.length > 0) {             Object.keys(results).forEach(function (key) {                 let row = results[key];                 idTeste = row.hairID;                 player.setClothes(2, idTest, 0, 2);             });         } else {             console.log("nao funciona");         }     }); }); 😅
    • to send to specific player client : https://wiki.rage.mp/index.php?title=Player::call to send to all clients : https://wiki.rage.mp/index.php?title=Players::call and to receive the data: https://wiki.rage.mp/index.php?title=Events::add
    • In generell is the server side peds system working? I can creat a new ped but the Heading is always 0
  • Files