Advertisement
ufteers

[GTAV] [RAGEMP] Hair colors parser

Apr 7th, 2021 (edited)
1,567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const getNumHairColors = () => mp.game.invoke('0xE5C0CF872C2AD150');
  2.  
  3. const getPedHairRgbColor = (colorIndex) => {
  4.     const color = { r: [0], g: [0], b: [0] };
  5.     mp.game.invoke('0x4852FC386E2E1BB5', colorIndex, color.r, color.g, color.b);
  6.    
  7.     return { r: color.r[0], g: color.g[0], b: color.b[0] };
  8. }
  9.  
  10. for (let index = 0; index < getNumHairColors(); index++) {     
  11.     const color = getPedHairRgbColor(index);
  12.     // mp.gui.chat.push(`${color.r}, ${color.g}, ${color.b}`);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement