Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using GTA;
- using GTA.Native;
- using GTA.Math;
- using NativeUI;
- using System.IO;
- using System.Drawing;
- using System.Timers;
- namespace Backpack
- {
- public class Backpack : Script
- {
- ScriptSettings config = ScriptSettings.Load(@"scripts\Backpack\Backpack.ini");
- public bool mask;
- public bool backpack=true;
- public bool holdStrap;
- NAudio.Wave.WaveFileReader WavereaderDown;
- NAudio.Wave.WaveChannel32 wavechanDown;
- NAudio.Wave.DirectSoundOut DSODown;
- float volumeDown;
- public Backpack()
- {
- Tick += OnTick;
- KeyDown += OnKeyDown;
- KeyUp += OnKeyUP;
- }
- public void SoundFX()
- {
- if (File.Exists(@"scripts\Backpack\holdStrap.wav"))
- {
- WavereaderDown = new NAudio.Wave.WaveFileReader(@"scripts\Backpack\holdStrap.wav");
- wavechanDown = new NAudio.Wave.WaveChannel32(WavereaderDown);
- volumeDown = config.GetValue<float>("Settings", "Global Volume Down", 30f);
- DSODown = new NAudio.Wave.DirectSoundOut();
- DSODown.Init(wavechanDown);
- wavechanDown.Volume = (volumeDown / 100);
- DSODown.Play();
- DSODown.Dispose();
- holdStrap = false;
- }
- else
- {
- UI.ShowSubtitle("holdStrap.wav" + " is not found!");
- }
- }
- private void OnTick(object sender, EventArgs e)
- {
- if (backpack == true)
- {
- int GetHashKey(string value)
- {
- return Function.Call<int>(Hash.GET_HASH_KEY, value);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ZERO"))
- {
- float ComponentIDf = config.GetValue<float>("Michael's Backpack", "ComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Michael's Backpack", "Model", 8f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Michael's Backpack", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ONE"))
- {
- float ComponentIDf = config.GetValue<float>("Franklin's Backpack", "ComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Franklin's Backpack", "Model", 3f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Franklin's Backpack", "Texture", 2f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_TWO"))
- {
- float ComponentIDf = config.GetValue<float>("Trevor's Backpack", "ComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Trevor's Backpack", "Model", 5f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Trevor's Backpack", "Texture", 1f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- }
- //MASK
- if (mask == true)
- {
- int GetHashKey(string value)
- {
- return Function.Call<int>(Hash.GET_HASH_KEY, value);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ZERO"))
- {
- float ComponentIDf = config.GetValue<float>("Michael's Mask", "ComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Michael's Mask", "Model", 4f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Michael's Mask", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ONE"))
- {
- float ComponentIDf = config.GetValue<float>("Franklin's Mask", "ComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Franklin's Mask", "Model", 4f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Franklin's Mask", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_TWO"))
- {
- float ComponentIDf = config.GetValue<float>("Trevor's Mask", "ComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Trevor's Mask", "Model", 2f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Trevor's Mask", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- }
- }
- private void OnKeyUP(object sender, KeyEventArgs e)
- {
- }
- private void OnKeyDown(object sender, KeyEventArgs e)
- {
- //BAG DRAW ANIM
- if (e.Shift && Game.IsKeyPressed(Keys.Tab) && !Game.Player.Character.IsInVehicle())
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "anim@heists@ornate_bank@grab_cash_heels");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "anim@heists@ornate_bank@grab_cash_heels")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "anim@heists@ornate_bank@grab_cash_heels", "exit", 24.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- Wait(2000);
- Game.Player.Character.Task.ClearAll();
- }
- //BACKPACK
- if (!Game.Player.Character.IsInVehicle() && e.Shift && Game.IsKeyPressed(config.GetValue<Keys>("KEYS", "Clipset_KEY", Keys.T)) && backpack == true)
- {
- if (holdStrap == true)
- {
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.RESET_PED_WEAPON_MOVEMENT_CLIPSET, Game.Player.Character);
- if (File.Exists(@"scripts\Backpack\holdStrap.wav"))
- {
- WavereaderDown = new NAudio.Wave.WaveFileReader(@"scripts\Backpack\holdStrap.wav");
- wavechanDown = new NAudio.Wave.WaveChannel32(WavereaderDown);
- volumeDown = config.GetValue<float>("Settings", "Global Volume Down", 30f);
- DSODown = new NAudio.Wave.DirectSoundOut();
- DSODown.Init(wavechanDown);
- wavechanDown.Volume = (volumeDown / 100);
- DSODown.Play();
- DSODown.Dispose();
- holdStrap = false;
- } else
- {
- UI.ShowSubtitle("holdStrap.wav" + " is not found!");
- }
- } else if (holdStrap == false)
- {
- Function.Call(Hash.REQUEST_ANIM_SET, "move_p_m_zero_rucksack");
- while (!Function.Call<bool>(Hash.HAS_ANIM_SET_LOADED, "move_p_m_zero_rucksack"))
- {
- Wait(100);
- }
- if (File.Exists(@"scripts\Backpack\holdStrap.wav"))
- {
- WavereaderDown = new NAudio.Wave.WaveFileReader(@"scripts\Backpack\holdStrap.wav");
- wavechanDown = new NAudio.Wave.WaveChannel32(WavereaderDown);
- volumeDown = config.GetValue<float>("Settings", "Global Volume Down", 30f);
- DSODown = new NAudio.Wave.DirectSoundOut();
- DSODown.Init(wavechanDown);
- wavechanDown.Volume = (volumeDown / 100);
- DSODown.Play();
- DSODown.Dispose();
- holdStrap = false;
- }
- else
- {
- UI.ShowSubtitle("holdStrap.wav" + " is not found!");
- }
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.SET_PED_WEAPON_MOVEMENT_CLIPSET, Game.Player.Character, "move_p_m_zero_rucksack", 1.0f);
- holdStrap = true;
- }
- }
- if (e.Shift && Game.IsKeyPressed(config.GetValue<Keys>("KEYS", "Backpack_KEY", Keys.V)))
- {
- // Function.Call(Hash.DO_SCREEN_FADE_IN,(1000));
- // Wait(10);
- // Function.Call(Hash.DO_SCREEN_FADE_OUT, (1000));
- if (backpack == false)
- {
- int GetHashKey(string value)
- {
- return Function.Call<int>(Hash.GET_HASH_KEY, value);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ZERO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "oddjobs@basejump@ig_15");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "oddjobs@basejump@ig_15")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "oddjobs@basejump@ig_15", "puton_parachute", 45.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Michael's Backpack", "ComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Michael's Backpack", "Model", 8f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Michael's Backpack", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- Wait(1000);
- Game.Player.Character.Task.ClearAll();
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ONE"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "oddjobs@basejump@ig_15");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "oddjobs@basejump@ig_15")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "oddjobs@basejump@ig_15", "puton_parachute", 45.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Franklin's Backpack", "ComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Franklin's Backpack", "Model", 3f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Franklin's Backpack", "Texture", 2f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- Wait(1000);
- Game.Player.Character.Task.ClearAll();
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_TWO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "oddjobs@basejump@ig_15");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "oddjobs@basejump@ig_15")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "oddjobs@basejump@ig_15", "puton_parachute", 45.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Trevor's Backpack", "ComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Trevor's Backpack", "Model", 5f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Trevor's Backpack", "Texture", 1f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- Wait(1000);
- Game.Player.Character.Task.ClearAll();
- }
- backpack = true;
- holdStrap = true;
- UI.Notify("Backpack set");
- Function.Call(Hash.REQUEST_ANIM_SET, "move_p_m_zero_rucksack");
- while (!Function.Call<bool>(Hash.HAS_ANIM_SET_LOADED, "move_p_m_zero_rucksack"))
- {
- Wait(100);
- }
- Function.Call(Hash.SET_PED_WEAPON_MOVEMENT_CLIPSET, Game.Player.Character, "move_p_m_zero_rucksack", 1.0f);
- }
- else if (backpack == true)
- {
- int GetHashKey(string value)
- {
- return Function.Call<int>(Hash.GET_HASH_KEY, value);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ZERO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "skydive@parachute@");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "skydive@parachute@")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "skydive@parachute@", "chute_off", 12.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- Wait(500);
- Game.Player.Character.Task.ClearAll();
- float ComponentIDf = config.GetValue<float>("Michael's Backpack", "OFFComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Michael's Backpack", "OFFModel", 0f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Michael's Backpack", "OFFTexture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ONE"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "skydive@parachute@");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "skydive@parachute@")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "skydive@parachute@", "chute_off", 12.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- Wait(500);
- Game.Player.Character.Task.ClearAll();
- float ComponentIDf = config.GetValue<float>("Franklin's Backpack", "OFFComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Franklin's Backpack", "OFFModel", 0f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Franklin's Backpack", "OFFTexture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_TWO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "skydive@parachute@");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "skydive@parachute@")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "skydive@parachute@", "chute_off", 12.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- Wait(500);
- Game.Player.Character.Task.ClearAll();
- float ComponentIDf = config.GetValue<float>("Trevor's Backpack", "OFFComponentID", 10f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Trevor's Backpack", "OFFModel", 0f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Trevor's Backpack", "OFFTexture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- }
- backpack = false;
- UI.Notify("Backpack unset");
- Function.Call(Hash.RESET_PED_WEAPON_MOVEMENT_CLIPSET, Game.Player.Character);
- }
- }
- //MASK
- if (e.Shift && Game.IsKeyPressed(config.GetValue<Keys>("KEYS", "Mask_KEY", Keys.N)))
- {
- // Function.Call(Hash.DO_SCREEN_FADE_IN,(1000));
- // Wait(10);
- // Function.Call(Hash.DO_SCREEN_FADE_OUT, (1000));
- if (mask == false)
- {
- int GetHashKey(string value)
- {
- return Function.Call<int>(Hash.GET_HASH_KEY, value);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ZERO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "mp_masks@on_foot");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "mp_masks@on_foot")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "mp_masks@on_foot", "put_on_mask", 8.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Michael's Mask", "ComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Michael's Mask", "Model", 4f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Michael's Mask", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- SoundFX();
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ONE"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "mp_masks@on_foot");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "mp_masks@on_foot")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "mp_masks@on_foot", "put_on_mask", 8.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Franklin's Mask", "ComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Franklin's Mask", "Model", 4f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Franklin's Mask", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- SoundFX();
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_TWO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "mp_masks@on_foot");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "mp_masks@on_foot")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "mp_masks@on_foot", "put_on_mask", 8.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Trevor's Mask", "ComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Trevor's Mask", "Model", 2f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Trevor's Mask", "Texture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- SoundFX();
- }
- mask = true;
- UI.Notify("Mask set");
- }
- else if (mask == true)
- {
- int GetHashKey(string value)
- {
- return Function.Call<int>(Hash.GET_HASH_KEY, value);
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ZERO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "mp_masks@on_foot");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "mp_masks@on_foot")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "mp_masks@on_foot", "put_on_mask", 8.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Michael's Mask", "OFFComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Michael's Mask", "OFFModel", 2f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Michael's Mask", "OFFTexture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- SoundFX();
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_ONE"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "mp_masks@on_foot");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "mp_masks@on_foot")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "mp_masks@on_foot", "put_on_mask", 8.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Franklin's Mask", "OFFComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Franklin's Mask", "OFFModel", 1f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Franklin's Mask", "OFFTexture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- SoundFX();
- }
- if (Game.Player.Character.Model.Hash == GetHashKey("PLAYER_TWO"))
- {
- Function.Call(Hash.REQUEST_ANIM_DICT, "mp_masks@on_foot");
- while (!Function.Call<bool>(Hash.HAS_ANIM_DICT_LOADED, "mp_masks@on_foot")) Wait(10);
- Game.Player.Character.Task.ClearAll();
- Function.Call(Hash.TASK_PLAY_ANIM, Game.Player.Character, "mp_masks@on_foot", "put_on_mask", 8.0f, -12.0, -1, 48, 0f, 0, 0, 0);
- float ComponentIDf = config.GetValue<float>("Trevor's Mask", "OFFComponentID", 1f);
- int ComponentID = (int)ComponentIDf;
- float Modelf = config.GetValue<float>("Trevor's Mask", "OFFModel", 0f);
- int Model = (int)Modelf;
- float Texturef = config.GetValue<float>("Trevor's Mask", "OFFTexture", 0f);
- int Texture = (int)Texturef;
- Function.Call(Hash.SET_PED_COMPONENT_VARIATION, Game.Player.Character, ComponentID, Model, Texture);
- SoundFX();
- }
- mask = false;
- UI.Notify("Mask unset");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement