Log in to reply
 

_SET_HUD_COLOR function not working



  • I made this script to change the hud color depending on the current character model but it doesn't work
    This is the code

    using GTA;
    using GTA.Native;
    using System;
    using System.Windows.Forms;
    
    public class SetHudColor : Script
    {
    
    public SetHudColor()
    {
    	//KeyDown += OnKeyDown;
    	Tick += OnTick;
    }
    
    /*private void OnKeyDown(object sender, KeyEventArgs e)
    {
    	if (e.KeyCode == Keys.F12)
    {
    	Function.Call((Hash)0xF314CF4F0211894E, 116, 45, 110, 185, 255);
    }}*/
    
    private void OnTick(object sender, EventArgs e)
    {
        Ped character = Game.Player.Character;
       
        if (character.Model == PedHash.Michael)
    {
    	Function.Call((Hash)0xF314CF4F0211894E, 143, 101, 180, 212, 255);
    }
        if (character.Model == PedHash.Trevor)
    {
    	Function.Call((Hash)0xF314CF4F0211894E, 145, 255, 163, 87, 255);
    }
        if (character.Model == PedHash.Franklin)
    {
    	Function.Call((Hash)0xF314CF4F0211894E, 144, 171, 237, 171, 255);
    }
        if (character.Model == PedHash.FreemodeFemale01)
    {
    	Function.Call((Hash)0xF314CF4F0211894E, 116, 45, 110, 185, 255);
    }
    	if (character.Model == PedHash.FreemodeMale01)
    {
    	Function.Call((Hash)0xF314CF4F0211894E, 116, 45, 110, 185, 255);
    }}}
    


  • Bump


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.