SWEP

  • Initiateur de la discussion Romaiin4K
  • Date de début
  • Initiateur de la discussion
R

Romaiin4K

Nouveau né
Messages
5
Score réaction
0
Points
15
Bonjour, j'aimerais que lorsque je fait clic droit ou/et clic gauche, cela m'ouvre le menu ulx, le seul probleme est que la commande s'execute deux fois donc le menu s'ouvre et se ferme immédiatement.
Voici le code :

Java:
AddCSLuaFile()
SWEP.PrintName = "Stick Admin"
SWEP.Author = "Romain"
SWEP.Instructions = ""
SWEP.Category = "Romain"
SWEP.Slot = 0
SWEP.SlotPos = 10
SWEP.Spawnable = true
SWEP.ViewModel = Model("models/weapons/HL2meleepack/v_pan.mdl")
SWEP.WorldModel = Model("models/weapons/HL2meleepack/w_pan.mdl")
SWEP.ViewModelFOV = 62
SWEP.UseHands = true
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = true
SWEP.Secondary.Ammo = "none"
SWEP.DrawAmmo = false
function SWEP:Initialize() self:SetHoldType("melee") if CLIENT then return end self:SetLagCompensated(true)
end
local swing = Sound("WeaponFrag.Roll")
function SWEP:PrimaryAttack() RunConsoleCommand('xgui')
end
function SWEP:SecondaryAttack() RunConsoleCommand('xgui')
end
function SWEP:OnDrop() end
function SWEP:Deploy() local vm = self.Owner:GetViewModel() vm:SendViewModelMatchingSequence(vm:LookupSequence("draw")) self:SetNextPrimaryFire(CurTime() + .5) return true
end
 
Yoh Sambre ♪

Yoh Sambre ♪

Shaman Fou
Messages
16 273
Score réaction
9 686
Points
1 845
essaye ca
Java:
AddCSLuaFile()
SWEP.PrintName = "Stick Admin"
SWEP.Author = "Romain"
SWEP.Instructions = ""
SWEP.Category = "Romain"
SWEP.Slot = 0
SWEP.SlotPos = 10
SWEP.Spawnable = true
SWEP.ViewModel = Model("models/weapons/HL2meleepack/v_pan.mdl")
SWEP.WorldModel = Model("models/weapons/HL2meleepack/w_pan.mdl")
SWEP.ViewModelFOV = 62
SWEP.UseHands = true
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = true
SWEP.Secondary.Ammo = "none"
SWEP.DrawAmmo = false
function SWEP:Initialize() self:SetHoldType("melee") if CLIENT then return end self:SetLagCompensated(true)
end
local swing = Sound("WeaponFrag.Roll")
function SWEP:PrimaryAttack() RunConsoleCommand('xgui')
end
function SWEP:OnDrop() end
function SWEP:Deploy() local vm = self.Owner:GetViewModel() vm:SendViewModelMatchingSequence(vm:LookupSequence("draw")) self:SetNextPrimaryFire(CurTime() + .5) return true
end
 
  • Initiateur de la discussion
R

Romaiin4K

Nouveau né
Messages
5
Score réaction
0
Points
15
Toujours pas
 
Discord d'entraide
Rejoignz-nous sur Discord