Jump to content

Cannot works setHeadOverlay on server


Recommended Posts

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 




this problem also exists when creating a ped character and giving it overlay on the client side

Edited by FordeD
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...