Remco1337 Posted April 22, 2020 Posted April 22, 2020 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now