Search the Community

Showing results for tags 'functions'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
    • RDR2 Multiplayer
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Facebook


Youtube


Skype


Web


VK

Found 2 results

  1. i have HeadOverlay structure on server structure screenshot: https://prnt.sc/og0skd After join server set headOverlay to player from structure piece of code: var params = Object.keys(character.customisation.details); for (var i = 0; i < params.length; i++) { if ((character.customisation == false && params[i] != "facial_hair" && params[i] != "body_blemishes" && params[i] != "chest_hair") || (character.customisation == true && params[i] != "makeup" && params[i] != "blush" && params[i] != "lipstick")) { let detail = character.customisation.details[params[i]]; player.setHeadOverlay(i, [detail.index, parseFloat(detail.opacity), detail.color1, detail.color2]); } else { let detail = character.customisation.details[params[i]]; player.setHeadOverlay(i, [detail.index, 0.0, detail.color1, detail.color2]); } } and function setHeadOverlay not works for other players (in stream). I don't see changes on player-ped (another player) needle overlay existing result Why? this problem also exists when creating a ped character and giving it overlay on the client side
  2. Hello, I started some days ago scripting a new server, lot of information is missing or need to be found in some external examples, but anyway, the most part I found it. But when started with clientside, I can't understand the way it works. So then, from JS called from HTML, you need to use mp.triggers(). Ok. If you call from (for example) client package "Test", file "Index.js", you can use mp.game.player object to access to the local player that triggered that event, ok. But the weird thing is, and my questions are : 1. In the Wiki, there are two sections on player commands, the top one (related with entities) and the bottom one ( related with ?? ), this last ones ( bottom) works well with mp.game.player, but the other ones I can't get them working ( apparently doesn't exists). So the first question is, how to access the first ones. 2. The second one is, if I want to sync a local even, for example an animation, from each local clientside player, do I have to do like this?? : /* Event call from server to all players */ mp.events.add('playerStartedAnim', function(targetPlayer, animation1, animation2){ /* loop through players until find the one that wants to play animation */ mp.players.forEach(function(pl){ if(pl.name == targetPlayer){ /* play animation ??*/ pl.taskPlayAnim(animation1,animation2,8.0,1,-1,49,1.0,false,false,false); } }); }); Well, above code is not working because the question 1, so take it like an example for what I'm asking. Thanks a lot for reading and thanks for advance.