Mod Hud Weapon Wheel

Started by Luis_Labarca, Apr 14, 2020, 09:30 PM

Previous topic - Next topic

Luis_Labarca

Good, here I bring you this little mod for vcmp

=== MOD HUD WEAPON WHEEL V0.1 ===

! Credits¡
Creator Luis_Labarca
Icons version 0.1 (Gtaall.com).

== Version 0.2 ==
Text how much ammunition.- Ready
open the wheel of weapons with the mause - Ready
new icons

Version 0.2
[spoiler]

[/spoiler]

Link Mod v0.2



Version 0.1
[spoiler]To open the menu press the  key ( E )



Add server/Script
[noae][noae][noae][noae][noae][noae][noae][noae][noae][noae][noae]function onScriptLoad()
{
KeyOpenWheelWeapons<- BindKey(true,0x45,0,0);
HUD <- array( GetMaxPlayers(), false );
HUDSLOT1 <- array( GetMaxPlayers(), "" );
HUDSLOT2 <- array( GetMaxPlayers(), "" );
HUDSLOT3 <- array( GetMaxPlayers(), "" );
HUDSLOT4 <- array( GetMaxPlayers(), "" );
HUDSLOT5 <- array( GetMaxPlayers(), "" );
HUDSLOT6 <- array( GetMaxPlayers(), "" );
HUDSLOT7 <- array( GetMaxPlayers(), "" );
HUDSLOT8 <- array( GetMaxPlayers(), "" );
}
function onPlayerSpawn( player )
{
player.SetWeapon(5,100)
player.SetWeapon(17,500)
player.SetWeapon(15,500)
player.SetWeapon(19,500)
player.SetWeapon(22,500)
player.SetWeapon(26,500)
player.SetWeapon(29,500)
player.SetWeapon(30,500)
}
function onKeyDown( player, key )
{
if ( key == KeyOpenWheelWeapons  && HUD[ player.ID ] == false)
{
HUD[ player.ID ] = true;
local Wep="";
for(local slot = 0; slot != 12; slot++)
{
local w_id = player.GetWeaponAtSlot(slot),w_ammo=player.GetAmmoAtSlot(slot),w_name=GetWeaponName(w_id);
if(w_id !=  0 && w_ammo != 0)
{
Wep +=" "+w_id+" "+w_ammo;
}
}
HUDSLOT1[player.ID] = GetTok( Wep, " ", 1 )+" "+GetTok( Wep, " ", 2 );
HUDSLOT2[player.ID] = GetTok( Wep, " ", 3 )+" "+GetTok( Wep, " ", 4 );
HUDSLOT3[player.ID] = GetTok( Wep, " ", 5 )+" "+GetTok( Wep, " ", 6 );
HUDSLOT4[player.ID] = GetTok( Wep, " ", 7 )+" "+GetTok( Wep, " ", 8 );
HUDSLOT5[player.ID] = GetTok( Wep, " ", 9 )+" "+GetTok( Wep, " ", 10 );
HUDSLOT6[player.ID] = GetTok( Wep, " ", 11 )+" "+GetTok( Wep, " ", 12 );
HUDSLOT7[player.ID] = GetTok( Wep, " ", 13 )+" "+GetTok( Wep, " ", 14 );
HUDSLOT8[player.ID] = GetTok( Wep, " ", 15 )+" "+GetTok( Wep, " ", 16 );
Stream.StartWrite()
Stream.WriteString("OpenMenuWheel"+Wep)
Stream.SendStream(player)
}
}
function onClientScriptData(player)
{
local ReadString = Stream.ReadString();
local ReadInt = Stream.ReadInt();
if(ReadString == "HudOff")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
}
if(ReadString == "SelectSlot1")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT1[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT1[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot2")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT2[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT2[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot3")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT3[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT3[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot4")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT4[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT4[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot5")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT5[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT5[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot6")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT6[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT6[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot7")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT7[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT7[player.ID], " ", 2 ).tointeger())
}
if(ReadString == "SelectSlot8")
{
Stream.StartWrite()
Stream.WriteString("CloseMenuWheel")
Stream.SendStream(player)
HUD[ player.ID ] = false;
player.SetWeapon(GetTok( HUDSLOT8[player.ID], " ", 1 ).tointeger(),GetTok( HUDSLOT8[player.ID], " ", 2 ).tointeger())
}
}



function GetTok(string, separator, n, ...)
{
local m = vargv.len() > 0 ? vargv[0] : n,
tokenized = split(string, separator),
text = "";
if (n > tokenized.len() || n < 1) return null;
for (; n <= m; n++)
{
text += text == "" ? tokenized[n-1] : separator + tokenized[n-1];
}
return text;
}
[/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae]

Add from Client -Side

[noae][noae][noae][noae][noae][noae][noae][noae][noae][noae][noae]//Add from Client - Side

ScreenX <- GUI.GetScreenSize().X;
ScreenY <- GUI.GetScreenSize().Y;
ScreenSize <- ScreenY / 40;


///=== VARIABLES
WheelWeapons <- {
 ButtonActivated1 = false,
 ButtonActivated2 = false,
 ButtonActivated3 = false,
 ButtonActivated4 = false,
 ButtonActivated5 = false,
 ButtonActivated6 = false,
 ButtonActivated7 = false,
 ButtonActivated8 = false,
 ButtonActivated9 = false,
 ButtonActivated10 = false,
//-----
 Circle = null,
 Wep1 = null,
 Wep2 = null,
 Wep3 = null,
 Wep4 = null,
 Wep5 = null,
 Wep6 = null,
 Wep7 = null,
 Wep8 = null,
//-----
 Button1 = null,
 Button2 = null,
 Button3 = null,
 Button4 = null,
 Button5 = null,
 Button6 = null,
 Button7 = null,
 Button8 = null,
//-----
 Text1 = null,
 Text2 = null,
 Text3 = null,
 Text4 = null,
 Text5 = null,
 Text6 = null,
 Text7 = null,
 Text8 = null,
//-----
 OptionButton1 = null,
 OptionButton2 = null,
 OptionButton3 = null,
 OptionButton4 = null,
 OptionButton5 = null,
 OptionButton6 = null,
 OptionButton7 = null,
 OptionButton8 = null,
 HudOff = null
 }
///===================================




function Script::ScriptProcess()
{
::ScreenX = GUI.GetScreenSize().X;
::ScreenY = GUI.GetScreenSize().Y;
if( ::WheelWeapons.Circle )
{
::WheelWeapons.Circle.Position = ::VectorScreen(( ScreenX * 0.30 ) - ( ScreenY / ScreenSize), ScreenY * 0.20)
}
}

function GUI::ElementClick(element, mouseX, mouseY)
{
if(element==::WheelWeapons.Wep1)
{
local Datos = Stream();
Datos.WriteString("SelectSlot1");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep2)
{
local Datos = Stream();
Datos.WriteString("SelectSlot2");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep3)
{
local Datos = Stream();
Datos.WriteString("SelectSlot3");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep4)
{
local Datos = Stream();
Datos.WriteString("SelectSlot4");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep5)
{
local Datos = Stream();
Datos.WriteString("SelectSlot5");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep6)
{
local Datos = Stream();
Datos.WriteString("SelectSlot6");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep7)
{
local Datos = Stream();
Datos.WriteString("SelectSlot7");
Server.SendData(Datos);
}
if(element==::WheelWeapons.Wep8)
{
local Datos = Stream();
Datos.WriteString("SelectSlot8");
Server.SendData(Datos);
}
if(element==::WheelWeapons.HudOff)
{
local Datos = Stream();
Datos.WriteString("HudOff");
Server.SendData(Datos);
}
}

function Server::ServerData(stream)
{
local ReadString = stream.ReadString(),ReadInt = stream.ReadInt(),ReadFloat=stream.ReadFloat();

if(GetTok( ReadString, " ", 1 ) == "OpenMenuWheel")
{
local Slot1 = null,Ammo1 = 0,Slot2 = null,Ammo2 = 0,Slot3 = null,Ammo3 = 0,Slot4 = null,Ammo4 = 0,Slot5 = null,Ammo5 = 0,Slot6 = null,Ammo6 = 0,Slot7 = null,Ammo7 = 0,Slot8 = null,Ammo8 = 0;
  Slot1=GetTok( ReadString, " ", 2 );
  Ammo1=GetTok( ReadString, " ", 3 );
  Slot2=GetTok( ReadString, " ", 4 );
  Ammo2=GetTok( ReadString, " ", 5 );
  Slot3=GetTok( ReadString, " ", 6 );
  Ammo3=GetTok( ReadString, " ", 7 );
  Slot4=GetTok( ReadString, " ", 8 );
  Ammo4=GetTok( ReadString, " ", 9 );
  Slot5=GetTok( ReadString, " ", 10 );
  Ammo5=GetTok( ReadString, " ", 11 );
  Slot6=GetTok( ReadString, " ", 12 );
  Ammo6=GetTok( ReadString, " ", 13 );
  Slot7=GetTok( ReadString, " ", 14 );
  Ammo7=GetTok( ReadString, " ", 15 );
  Slot8=GetTok( ReadString, " ", 16 );
  Ammo8=GetTok( ReadString, " ", 17 );
 ::GUI.SetMouseEnabled(true);
 ::WheelWeapons.Circle <- GUISprite("Wheel.png", VectorScreen(0, 0));
 ::WheelWeapons.Circle.Size = VectorScreen(400, 300);
 ::WheelWeapons.Circle.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Circle.Alpha=150;
 ::WheelWeapons.HudOff <- GUIButton(VectorScreen(120,270), VectorScreen(140, 22), Colour(20, 20, 20), "Cerrar", GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);
 ::WheelWeapons.HudOff.TextColour = Colour(255, 255, 255);
 ::WheelWeapons.HudOff.FontName = Colour(75,75,75);
 ::WheelWeapons.HudOff.FontSize = 11;
 ::WheelWeapons.HudOff.Alpha = 150;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.HudOff);
if(Slot1 != null)
{
 ::WheelWeapons.Wep1 <- GUISprite("Wep"+Slot1+".png", VectorScreen(110, 55));
 ::WheelWeapons.Wep1.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep1.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep1.Alpha=150;
 ::WheelWeapons.OptionButton1 = Slot1;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep1);
}
if(Slot2 != null)
{
 ::WheelWeapons.Wep2 <- GUISprite("Wep"+Slot2+".png", VectorScreen(180, 55));
 ::WheelWeapons.Wep2.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep2.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep2.Alpha=150;
 ::WheelWeapons.OptionButton2 = Slot2;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep2);
}
if(Slot3 != null)
{
 ::WheelWeapons.Wep3 <- GUISprite("Wep"+Slot3+".png", VectorScreen(250, 110));
 ::WheelWeapons.Wep3.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep3.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep3.Alpha=150;
 ::WheelWeapons.OptionButton3 = Slot3;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep3);
}
if(Slot4 != null)
{
 ::WheelWeapons.Wep4 <- GUISprite("Wep"+Slot4+".png", VectorScreen(250, 170));
 ::WheelWeapons.Wep4.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep4.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep4.Alpha=150;
 ::WheelWeapons.OptionButton4 = Slot4;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep4);
}
if(Slot5 != null)
{
 ::WheelWeapons.Wep5 <- GUISprite("Wep"+Slot5+".png", VectorScreen(190, 215));
 ::WheelWeapons.Wep5.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep5.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep5.Alpha=150;
 ::WheelWeapons.OptionButton5 = Slot5;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep5);
}
if(Slot6 != null)
{
 ::WheelWeapons.Wep6 <- GUISprite("Wep"+Slot6+".png", VectorScreen(110, 215));
 ::WheelWeapons.Wep6.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep6.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep6.Alpha=150;
 ::WheelWeapons.OptionButton6 = Slot6;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep6);
}
if(Slot7 != null)
{
 ::WheelWeapons.Wep7 <- GUISprite("Wep"+Slot7+".png", VectorScreen(55, 170));
 ::WheelWeapons.Wep7.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep7.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep7.Alpha=150;
 ::WheelWeapons.OptionButton7 = Slot7;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep7);
}
if(Slot8 != null)
{
 ::WheelWeapons.Wep8 <- GUISprite("Wep"+Slot8+".png", VectorScreen(55, 110));
 ::WheelWeapons.Wep8.Size = VectorScreen(80, 38);
 ::WheelWeapons.Wep8.AddFlags(GUI_FLAG_MOUSECTRL);
 ::WheelWeapons.Wep8.Alpha=150;
 ::WheelWeapons.OptionButton8 = Slot8;
 ::WheelWeapons.Circle.AddChild(WheelWeapons.Wep8);
}
}
if(ReadString=="CloseMenuWheel")
{
 ::GUI.SetMouseEnabled(false);
 ::WheelWeapons.ButtonActivated1 = false;
 ::WheelWeapons.ButtonActivated2 = false;
 ::WheelWeapons.ButtonActivated3 = false;
 ::WheelWeapons.ButtonActivated4 = false;
 ::WheelWeapons.ButtonActivated5 = false;
 ::WheelWeapons.ButtonActivated6 = false;
 ::WheelWeapons.ButtonActivated7 = false;
 ::WheelWeapons.ButtonActivated8 = false;
 ::WheelWeapons.ButtonActivated9 = false;
 ::WheelWeapons.ButtonActivated10 = false;
//-----
 ::WheelWeapons.Circle = null;
 ::WheelWeapons.Wep1 = null;
 ::WheelWeapons.Wep2 = null;
 ::WheelWeapons.Wep3 = null;
 ::WheelWeapons.Wep4 = null;
 ::WheelWeapons.Wep5 = null;
 ::WheelWeapons.Wep6 = null;
 ::WheelWeapons.Wep7 = null;
 ::WheelWeapons.Wep8 = null;
//-----
 ::WheelWeapons.Button1 = null;
 ::WheelWeapons.Button2 = null;
 ::WheelWeapons.Button3 = null;
 ::WheelWeapons.Button4 = null;
 ::WheelWeapons.Button5 = null;
 ::WheelWeapons.Button6 = null;
 ::WheelWeapons.Button7 = null;
 ::WheelWeapons.Button8 = null;
//-----
 ::WheelWeapons.Text1 = null;
 ::WheelWeapons.Text2 = null;
 ::WheelWeapons.Text3 = null;
 ::WheelWeapons.Text4 = null;
 ::WheelWeapons.Text5 = null;
 ::WheelWeapons.Text6 = null;
 ::WheelWeapons.Text7 = null;
 ::WheelWeapons.Text8 = null;
//-----
 ::WheelWeapons.OptionButton1 = null;
 ::WheelWeapons.OptionButton2 = null;
 ::WheelWeapons.OptionButton3 = null;
 ::WheelWeapons.OptionButton4 = null;
 ::WheelWeapons.OptionButton5 = null;
 ::WheelWeapons.OptionButton6 = null;
 ::WheelWeapons.OptionButton7 = null;
 ::WheelWeapons.OptionButton8 = null;
 ::WheelWeapons.HudOff = null;
}
}

function GUI::ElementHoverOver(element)
{
if(element == WheelWeapons.Wep1  &&  WheelWeapons.OptionButton1 != null )
{
 ::WheelWeapons.Button1 <- GUISprite("Button1.png", VectorScreen(0, 0));
 ::WheelWeapons.Button1.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button1.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button1.Alpha=150;
 ::WheelWeapons.ButtonActivated1 = true
  if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button1);
}
if(element == WheelWeapons.Wep2  &&  WheelWeapons.OptionButton2 != null)
{
 ::WheelWeapons.Button2 <- GUISprite("Button2.png", VectorScreen(0, 0));
 ::WheelWeapons.Button2.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button2.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button2.Alpha=150;
 ::WheelWeapons.ButtonActivated2 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button2);
}
if(element == WheelWeapons.Wep3  &&  WheelWeapons.OptionButton3 != null)
{
 ::WheelWeapons.Button3 <- GUISprite("Button3.png", VectorScreen(0, 0));
 ::WheelWeapons.Button3.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button3.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button3.Alpha=150;
 ::WheelWeapons.ButtonActivated3 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button3);
}
if(element == WheelWeapons.Wep4  &&  WheelWeapons.OptionButton4 != null)
{
 ::WheelWeapons.Button4 <- GUISprite("Button4.png", VectorScreen(0, 0));
 ::WheelWeapons.Button4.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button4.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button4.Alpha=150;
 ::WheelWeapons.ButtonActivated4 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button4);
}
if(element == WheelWeapons.Wep5  &&  WheelWeapons.OptionButton5 != null)
{
 ::WheelWeapons.Button5 <- GUISprite("Button5.png", VectorScreen(0, 0));
 ::WheelWeapons.Button5.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button5.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button5.Alpha=150;
 ::WheelWeapons.ButtonActivated5 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button5);
}
if(element == WheelWeapons.Wep6  &&  WheelWeapons.OptionButton6 != null)
{
 ::WheelWeapons.Button6 <- GUISprite("Button6.png", VectorScreen(0, 0));
 ::WheelWeapons.Button6.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button6.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button6.Alpha=150;
 ::WheelWeapons.ButtonActivated6 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button6);
}
if(element == WheelWeapons.Wep7  &&  WheelWeapons.OptionButton7 != null)
{
 ::WheelWeapons.Button7 <- GUISprite("Button7.png", VectorScreen(0, 0));
 ::WheelWeapons.Button7.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button7.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button7.Alpha=150;
 ::WheelWeapons.ButtonActivated7 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button7);
}
if(element == WheelWeapons.Wep8  &&  WheelWeapons.OptionButton8 != null)
{
 ::WheelWeapons.Button8 <- GUISprite("Button8.png", VectorScreen(0, 0));
 ::WheelWeapons.Button8.Size = VectorScreen(400, 300);
 ::WheelWeapons.Button8.AddFlags(GUI_FLAG_BACKGROUND);
 ::WheelWeapons.Button8.Alpha=150;
 ::WheelWeapons.ButtonActivated8 = true
 if(::WheelWeapons.Circle != null)::WheelWeapons.Circle.AddChild(WheelWeapons.Button8);
}
}
function GUI::ElementHoverOut(element)
{
if(element == WheelWeapons.Wep1  &&  WheelWeapons.ButtonActivated1 == true )
{
::WheelWeapons.ButtonActivated1 = false
::WheelWeapons.Button1 <- null;
}
if(element == WheelWeapons.Wep2  && WheelWeapons.ButtonActivated2 == true )
{
::WheelWeapons.ButtonActivated2 = false
::WheelWeapons.Button2 <- null;
}
if(element == WheelWeapons.Wep3  && WheelWeapons.ButtonActivated3 == true )
{
::WheelWeapons.ButtonActivated3 = false
::WheelWeapons.Button3 <- null;
}
if(element == WheelWeapons.Wep4  && WheelWeapons.ButtonActivated4 == true )
{
::WheelWeapons.ButtonActivated4 = false
::WheelWeapons.Button4 <- null;
}
if(element == WheelWeapons.Wep5  && WheelWeapons.ButtonActivated5 == true )
{
::WheelWeapons.ButtonActivated5 = false
::WheelWeapons.Button5 <- null;
}
if(element == WheelWeapons.Wep6  && WheelWeapons.ButtonActivated6 == true )
{
::WheelWeapons.ButtonActivated6 = false
::WheelWeapons.Button6 <- null;
}
if(element == WheelWeapons.Wep7  && WheelWeapons.ButtonActivated7 == true )
{
::WheelWeapons.ButtonActivated7 = false
::WheelWeapons.Button7 <- null;
}
if(element == WheelWeapons.Wep8  && WheelWeapons.ButtonActivated8 == true )
{
::WheelWeapons.ButtonActivated8 = false
::WheelWeapons.Button8 <- null;
}
}


function GetTok(string, separator, n, ...)
{
local m = vargv.len() > 0 ? vargv[0] : n,
tokenized = split(string, separator),
text = "";
if (n > tokenized.len() || n < 1) return null;
for (; n <= m; n++)
{
text += text == "" ? tokenized[n-1] : separator + tokenized[n-1];
}
return text;
}

[/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae][/noae]




Link icons : https://drive.google.com/open?id=1CirPBuEPT4-AsczI17NBQGN3jWSCmYX9 <--Add Server/Sotore/Sprites
Link ModComplete :link


Screeshots
[/spoiler]
My server RP
IP: 51.222.28.159:8194

EnForcer

Great work keep it up
Can you tell me how can I get Exact vector screen axis like you made a correct circle with pics

Luis_Labarca

== Version 0.2 ==

Text how much ammunition.- Ready
open the wheel of weapons with the mause - Ready
new icons


Version 0.2
[spoiler]

[/spoiler]

Link Mod v0.2

My server RP
IP: 51.222.28.159:8194

SHy^

"403. That's an error.

We're sorry, but you do not have access to this page. That's all we know."
Also I can't see the image :-\

NicusorN5

Change the google drive permissions and use direct links.

Luis_Labarca

Quote from: Shy on Oct 14, 2020, 09:14 AM"403. That's an error.

We're sorry, but you do not have access to this page. That's all we know."
Also I can't see the image :-\

Quote from: Athanatos on Oct 14, 2020, 06:36 PMChange the google drive permissions and use direct links.
problem solved
My server RP
IP: 51.222.28.159:8194