Jump to content
RAGE Multiplayer Community

Question about Character Customization


Recommended Posts

Hi,

I am trying to make a character customization, I got range input to scale between the index of the overlayId (https://wiki.rage.mp/index.php?title=Player::setHeadOverlay)

I am not getting any errors but it ain't working too.

 

mp.events.add('customizeCharacterFace', (overlayId, index) => {
    mp.player.local.setHeadOverlay(overlayId, index, 1.0, 12, 12);
});

In the cef .js to call the client-side event

document.getElementById("facialHairRange").step = "1";

$(function(){
    
    $("#facialHairRange").change(function(){ 
        alert('index: ' + $(this).val());
        mp.events.call('customizeCharacterFace', 1, $(this).val());
    });     
});

Alert:

https://imgur.com/B9KG9No

So it's passing the index not giving any errors, can someone help?

Link to post
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...