f4 menu problème

  • Initiateur de la discussion islem
  • Date de début
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
Bonjour j'ai un problème avec le f4 élites menu je ne peux pas accéder au menu des munitions
 
Gauthier Plus

Gauthier Plus

Geek suprême
Messages
717
Score réaction
310
Points
180
Détails ton problème, il y a t'il une erreurs ? a tu modifié les fichier du elite ?

:)
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
Oui
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
Et aussi je vois pas tout mes jobs sa les coupes .
 
NIL

NIL

Geek suprême
Messages
676
Score réaction
165
Points
160
Ta des screen ?
 
Unknown baguette

Unknown baguette

Helpeur Divin
Messages
2 734
Score réaction
1 162
Points
400
Oui screen stp
 
Gauthier Plus

Gauthier Plus

Geek suprême
Messages
717
Score réaction
310
Points
180
islem à dit:
Et aussi je vois pas tout mes jobs sa les coupes .
Oui screen et montre les erreurs ou ce que tu as modif.
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
okay 2sec jvous envoie sa
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
ELITE.StaffListRanks = { "superadmin", "admin", "Modo-Test", "Moderateur", "Fondateur", "Codeur", "modo-test", "Admin+" } -- What ULX ranks to show on the "Staff Online" list.
ELITE.ShowFoodTab = true -- Make sure Hungermod is enabled, otherwise this will give you errors!

ELITE.VIPJobCheckbox = true -- Whether or not to show the "Show VIP Jobs" checkbox on the jobs tab. (The checkbox is based on the jobs that have a customCheck)

ELITE.OpenWebsiteInOverlay = true -- If this is true, the website will open in Steam overlay, if false, it will open in the F4 menu.

ELITE.WebsiteURL = "" -- Website that opens when clicking the "Website" button, make sure you include "http://"!

ELITE.OpenVipInOverlay = true -- If this is true, the website will open in Steam overlay, if false, it will open in the F4 menu.

ELITE.VipURL = "" -- Website that opens when clicking the "Website" button, make sure you include "http://"!

ELITE.OpenAddonsInOverlay = true -- If this is true, the website will open in Steam overlay, if false, it will open in the F4 menu.

ELITE.AddonsURL = "" -- Website that opens when clicking the "Website" button, make sure you include "http://"!
timer.Simple( 1, function() -- Don't screw with this timer, but you may change the tables inside.
ELITE.AccessToCPCmds = { TEAM_POLICE, TEAM_COMMISSAIRE, TEAM_BACC, TEAM_RAID, TEAM_GIGN, TEAM_STAFF, TEAM_CHEFDURAID }

ELITE.AccessToMayorCmds = { TEAM_MAYOR }
end)

-- Adding Commands Buttons (Advanced)


MONEYCMD_BUTTONS = {}
RPCMD_BUTTONS = {}
CPCMD_BUTTONS = {}
MAYORCMD_BUTTONS = {}
OTHERCMD_BUTTONS = {}

local function AddSidebarButton( n, f )
table.insert(WEB_BUTTONS, { Title = n, Func = f } )
end
local function MenuAddMButton( n, f )
table.insert(MONEYCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddRPButton( n, f )
table.insert(RPCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddCPButton( n, f )
table.insert(CPCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddMayorButton( n, f )
table.insert(MAYORCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddOtherButton( n, f )
table.insert(OTHERCMD_BUTTONS, { NAME = n, FUNC = f } )
end

--First Section
MenuAddMButton( "Donner de l'argent au joueur que je regarde", function() OpenTextBox( "Donner de l'argent", "Combien d'argent voulez-vous donner a ce joueur ?", "/give" ) end )
MenuAddMButton( "Jeter de l'argent", function() OpenTextBox( "Jeter de l'argent", "Combien d'argent voulez-vous jeter ?", "/moneydrop" ) end )
--MenuAddMButton( "Buy Health", function() RunConsoleCommand( "say", "/buyhealth" ) end )

--Second Section
MenuAddRPButton( "Changer de Nom RP", function() OpenTextBox( "Changer de Nom", "Quel Nom RP voulez-vous mettre ?", "/rpname" ) end )
--MenuAddRPButton( "Dormir / Se lever", function() RunConsoleCommand( "say", "/sleep" ) end )
MenuAddRPButton( "Jeter son arme", function() RunConsoleCommand( "say", "/drop" ) end )
MenuAddRPButton( "Demander une licence d'arme", function() RunConsoleCommand( "say", "/requestlicense" ) end )
MenuAddRPButton( "Rétrograder un joueur", function() OpenPlyReasonBox( "Rétrograder un joueur", "Quel joueur voulez-vous retrograder ?", "Pourquoi voulez-vous pour rétrograder ce joueur ?", "/demote" ) end )
MenuAddRPButton( "Vendre toutes ses portes", function() RunConsoleCommand( "say", "/unownalldoors" ) end )

MenuAddCPButton( "Mettre un avis de recherche sur un joueur", function() OpenPlyReasonBox( "Mettre un avis de recherche", "Sur quel joueur voulez-vous mettre un avis de recherche ?", "Pourquoi voulez-vous lui mettre un avis de recherche ?", "/wanted" ) end )
MenuAddCPButton( "Enlever un avis de recherche sur un joueur", function() OpenPlyBox( "Enlever un avis de recherche", "Sur quel joueur voulez-vous enlever un avis de recherche ?", "/unwanted" ) end )
MenuAddCPButton( "Mettre un mandat sur un joueur", function() OpenPlyReasonBox( "Mettre un mandat", "Sur quel joueur voulez-vous mettre un mandat ?", "Pourquoi voulez-vous lui mettre un mandat ?", "/warrant" ) end )
MenuAddCPButton( "Rédiger un rapport de Police", function() RunConsoleCommand( "say", "/policereport" ) end )

MenuAddMayorButton( "Mettre un avis de recherche sur un joueur", function() OpenPlyReasonBox( "Mettre un avis de recherche", "Sur quel joueur voulez-vous mettre un avis de recherche ?", "Pourquoi voulez-vous lui mettre un avis de recherche ?", "/wanted" ) end )
MenuAddMayorButton( "Enlever un avis de recherche sur un joueur", function() OpenPlyBox( "Enlever un avis de recherche", "Sur quel joueur voulez-vous enlever un avis de recherche ?", "/unwanted" ) end )
MenuAddMayorButton( "Mettre un mandat sur un joueur", function() OpenPlyReasonBox( "Mettre un mandat", "Sur quel joueur voulez-vous mettre un mandat ?", "Pourquoi voulez-vous lui mettre un mandat ?", "/warrant" ) end )
MenuAddMayorButton( "Initier un Couvre-Feu", function() RunConsoleCommand( "say", "/lockdown" ) end )
MenuAddMayorButton( "Arreter le Couvre-Feu", function() RunConsoleCommand( "say", "/unlockdown" ) end )
MenuAddMayorButton( "Placer le tableau de lois", function() RunConsoleCommand( "say", "/placelaws" ) end )
MenuAddMayorButton( "Ajouter une loi", function() OpenTextBox( "Ajouter une loi", "Quelle nouvelle loi voulez-vous presenter ?", "/addlaw" ) end )
MenuAddMayorButton( "Enlever une loi", function() OpenTextBox( "Enlever une loi", "Quelle nouvelle loi voulez-vous enlever ?", "/removelaw" ) end )
MenuAddMayorButton( "Rédiger un rapport de Police", function() RunConsoleCommand( "say", "/policereport" ) end )

--MenuAddOtherButton( "Say I'm Swaggy", function() RunConsoleCommand( "say", "I'm swaggy" ) end )

voici mo, f4 menu config
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
ici le f4 menu job



local showVIP = true

local function PopulateJobList()
for k, v in pairs( RPExtraTeams ) do

local name = v.name
local VIP = false

local show = true
if team.GetName( LocalPlayer():Team() ) == v.name then
show = false
elseif v.admin == 1 and not LocalPlayer():IsAdmin() then
show = false
end
if v.admin > 1 and not LocalPlayer():IsSuperAdmin() then
show = false
end
if v.customCheck and not showVIP then
show = false
end
if v.customCheck then
VIP = true
end
if (type(v.NeedToChangeFrom) == "number" and LocalPlayer():Team() ~= v.NeedToChangeFrom) or (type(v.NeedToChangeFrom) == "table" and not table.HasValue(v.NeedToChangeFrom, LocalPlayer():Team())) then
show = false
end

if show then
local jobFrame = vgui.Create( "DPanel" ) -- surface.DrawLine( 24, self:GetTall() - 44, self:GetWide() - 24, self:GetTall() - 44 )
jobFrame:SetSize( JOB_LIST:GetWide(), 60 )
jobFrame:SetTooltip( v.description )
jobFrame.Paint = function( self, w, h )

if VIP then
draw.RoundedBox( 0, 0, 0, w, h, Color( 240, 251, 255 ) )
end

surface.SetDrawColor( Color( 242, 242, 242 ) )

surface.DrawLine( 0, h - 1, w, h - 1 )

draw.SimpleText( string.upper(name), "RP_SubFontThick", 56, 14, Color( 0, 0, 0 ) )
draw.SimpleText( "Salaire : "..string.upper(v.salary).." €", "RP_SubFontThick", 56, 30, Color( 190, 190, 190 ) )
local text = v.max
if text == 0 then text = "∞" end
end
jobFrame.OnCursorEntered = function( self )

end
jobFrame.OnCursorEntered = function( self )

end

JOB_LIST:AddItem( jobFrame )

local jobButton = vgui.Create( "DButton", jobFrame )
jobButton:SetSize( 90, 35 )
jobButton:SetPos( jobFrame:GetWide() - 110, (jobFrame:GetTall() / 2) - 17.5 )
jobButton:SetText( "Choisir" )
jobButton:SetFont( "RP_ButtonFont" )
jobButton:SetTextColor(Color( 239, 239, 243 ))
jobButton.Paint = function( self, w, h )
draw.RoundedBox( 4, 0, 0, w, h, Color( 239, 239, 243 ) )
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 237, 141, 62 ) )
draw.RoundedBox( 4, 2, 2, w - 4, h - 4, Color( 255, 115, 0 ) )

if self.hover then
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 222, 100, 0 ) )
end
end
jobButton.DoClick = function( self )
if type(v.model) == "table" and table.Count( v.model ) > 1 then
local CH_BG = vgui.Create( "DFrame" )
CH_BG:SetSize( ScrW(), ScrH() )
CH_BG:SetPos( 0, 0 )
CH_BG:MakePopup()
CH_BG:SetTitle( "" )
CH_BG:ShowCloseButton( false )
CH_BG.Paint = function()

end

local CH_MAIN = vgui.Create( "DFrame", CH_BG )
CH_MAIN:SetSize( 400, 500 )
CH_MAIN:Center()
CH_MAIN:SetTitle( "" )
CH_MAIN:ShowCloseButton( false )
CH_MAIN.Init = function(self)
self.startTime = SysTime()
end
CH_MAIN.Paint = function( self, w, h )
draw.RoundedBox( 2, 0, 0, w, h, Color( 239, 239, 239 ) )
draw.RoundedBox( 2, 1, 1, w - 2, h - 2, Color( 255, 255, 255 ) )

draw.SimpleText( "Choisir l'apparence", "RP_SubFontThick", 24, 20, Color( 190, 190, 190 ) )

surface.SetDrawColor( Color( 242, 242, 242 ) )
surface.DrawLine( 24, 44, 182 - 26, 44 )
end

local cl = vgui.Create( "DButton", CH_MAIN )
cl:SetSize( 50, 20 )
cl:SetPos( CH_MAIN:GetWide() - 60, 0 )
cl:SetText( "X" )
cl:SetFont( "fontclose" )
cl:SetTextColor( Color( 255, 255, 255, 255 ) )
cl.Paint = function( self, w, h )
local kcol
if self.hover then
kcol = Color( 255, 150, 150, 255 )
else
kcol = Color( 175, 100, 100 )
end
draw.RoundedBoxEx( 0, 0, 0, w, h, Color( 255, 150, 150, 255 ), false, false, true, true )
draw.RoundedBoxEx( 0, 1, 0, w - 2, h - 1, kcol, false, false, true, true )
end
cl.DoClick = function()
CH_BG:Close()
--F4Menu:Close()
end
cl.OnCursorEntered = function( self )
self.hover = true
end
cl.OnCursorExited = function( self )
self.hover = false
end

local curModel = table.GetFirstValue( v.model )

local CH_MODEL = vgui.Create( "DModelPanel", CH_MAIN )
CH_MODEL:SetSize( 500, 460 )
CH_MODEL:SetModel( curModel )
CH_MODEL:Center()

local CH_PREV = vgui.Create( "DButton", CH_MAIN )
CH_PREV:SetSize( 40, 35 )
CH_PREV:SetPos( 50, CH_MAIN:GetTall() - 50 )
CH_PREV:SetText( "<" )
CH_PREV:SetFont( "RP_ButtonFont" )
CH_PREV:SetTextColor( Color( 255, 255, 255, 255 ) )
CH_PREV.Paint = function( self, w, h )
draw.RoundedBox( 4, 0, 0, w, h, Color( 239, 239, 243 ) )
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 237, 141, 62 ) )
draw.RoundedBox( 4, 2, 2, w - 4, h - 4, Color( 255, 115, 0 ) )

if self.hover then
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 222, 100, 0 ) )
end
end
CH_PREV.OnCursorEntered = function( self )
self.hover = true
end
CH_PREV.OnCursorExited = function( self )
self.hover = false
end
CH_PREV.DoClick = function()
local nextModel = table.FindPrev( v.model, curModel )
CH_MODEL:SetModel( nextModel )
curModel = nextModel

end

local CH_NEXT = vgui.Create( "DButton", CH_MAIN )
CH_NEXT:SetSize( 40, 35 )
CH_NEXT:SetPos( CH_MAIN:GetWide() - 90, CH_MAIN:GetTall() - 50 )
CH_NEXT:SetText( ">" )
CH_NEXT:SetFont( "RP_ButtonFont" )
CH_NEXT:SetTextColor( Color( 255, 255, 255, 255 ) )
CH_NEXT.Paint = function( self, w, h )
draw.RoundedBox( 4, 0, 0, w, h, Color( 239, 239, 243 ) )
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 237, 141, 62 ) )
draw.RoundedBox( 4, 2, 2, w - 4, h - 4, Color( 255, 115, 0 ) )

if self.hover then
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 222, 100, 0 ) )
end
end
CH_NEXT.DoClick = function()
local nextModel = table.FindNext( v.model, curModel )
CH_MODEL:SetModel( nextModel )
curModel = nextModel
end
CH_NEXT.OnCursorEntered = function( self )
self.hover = true
end
CH_NEXT.OnCursorExited = function( self )
self.hover = false
end

local CH_OKAY = vgui.Create( "DButton", CH_MAIN )
CH_OKAY:SetSize( 120, 35 )
CH_OKAY:SetPos( CH_MAIN:GetWide() / 2 - 60, CH_MAIN:GetTall() - 50 )
CH_OKAY:SetText( "Accepter" )
CH_OKAY:SetFont( "RP_ButtonFont" )
CH_OKAY:SetTextColor( Color( 255, 255, 255, 255 ) )
CH_OKAY.Paint = function( self, w, h )
draw.RoundedBox( 4, 0, 0, w, h, Color( 239, 239, 243 ) )
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 237, 141, 62 ) )
draw.RoundedBox( 4, 2, 2, w - 4, h - 4, Color( 255, 115, 0 ) )

if self.hover then
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 222, 100, 0 ) )
end
end
CH_OKAY.DoClick = function()

for _, team in pairs( team.GetAllTeams() ) do
if team.Name == v.name then
DarkRP.setPreferredJobModel(_, curModel)
end
end

if v.vote then
if ((v.admin == 0 and LocalPlayer():IsAdmin()) or (v.admin == 1 and LocalPlayer():IsSuperAdmin())) then
local menu = DermaMenu( CH_OKAY )
menu:AddOption("Vote", function() RunCmd("/vote"..v.command)
BG_PANEL:Remove()
CH_MAIN:Close()
CH_BG:Remove()
end)
menu:AddOption("Pas de vote", function() RunCmd("/"..v.command)
BG_PANEL:Remove()
CH_MAIN:Close()
CH_BG:Remove()
end)
menu:Open()
else
RunCmd("/vote"..v.command)
BG_PANEL:Remove()
CH_MAIN:Close()
CH_BG:Remove()
end
else
RunCmd("/"..v.command)
BG_PANEL:Close()
BG_PANEL:Remove()
CH_BG:Remove()
end


end
CH_OKAY.OnCursorEntered = function( self )
self.hover = true
end
CH_OKAY.OnCursorExited = function( self )
self.hover = false
end
else
if v.vote then
if ((v.admin == 0 and LocalPlayer():IsAdmin()) or (v.admin == 1 and LocalPlayer():IsSuperAdmin())) then
local menu = DermaMenu( CH_MAIN )
menu:AddOption("Vote", function() RunCmd("/vote"..v.command) BG_PANEL:Remove() end)
menu:AddOption("Pas de vote", function() RunCmd("/"..v.command) BG_PANEL:Remove() end)
menu:Open()
else
RunCmd("/vote"..v.command)
BG_PANEL:Remove()
end
else
RunCmd("/"..v.command)
BG_PANEL:Remove()
end
end
end
jobButton.OnCursorEntered = function( self )
self.hover = true
end
jobButton.OnCursorExited = function( self )
self.hover = false
end

local model

if type( v.model ) == "table" then
model = table.Random( v.model )
else
model = v.model
end

local jobModel = vgui.Create( "SpawnIcon", jobFrame )
jobModel:SetSize( 52, 52 )
jobModel:SetPos( 0, 8 )
jobModel:SetModel( model )

end

end
end

function LoadCmdPanel()

BG_HEADTEXT:SetText( "M\195\169tiers" )
BG_HEADTEXT:SizeToContents()

JOB_MAIN = vgui.Create( "Panel", BG_MAIN )
JOB_MAIN:SetSize( BG_MAIN:GetWide(), BG_MAIN:GetTall() )

local JOB_SIDE = vgui.Create( "Panel", JOB_MAIN )
JOB_SIDE:SetSize( BG_MAIN:GetWide() - 56, BG_MAIN:GetTall() - 50 )
JOB_SIDE:SetPos( -200, 25 )
JOB_SIDE.Paint = function( self, w, h )
draw.RoundedBox( 2, 0, 0, w, h, Color( 239, 239, 239 ) )
draw.RoundedBox( 2, 1, 1, w - 2, h - 2, Color( 255, 255, 255 ) )

draw.SimpleText( "M\195\169tiers", "RP_SubFontThick", 24, 20, Color( 190, 190, 190 ) )

surface.SetDrawColor( Color( 242, 242, 242 ) )
surface.DrawLine( 24, 44, w - 26, 44 )
end

if ELITE.VIPJobCheckbox then
local VIP_CHECK = vgui.Create( "DCheckBoxLabel", JOB_SIDE )
VIP_CHECK:SetPos( JOB_SIDE:GetWide() - 120, 20 )
VIP_CHECK:SetText( "M\195\169tiers VIP" )
VIP_CHECK:SetTextColor( Color(0, 0, 0) )
VIP_CHECK:SetChecked( true )
VIP_CHECK.OnChange = function( self, val )
showVIP = val
JOB_LIST:Clear()
PopulateJobList()
end
VIP_CHECK:SizeToContents()
end

JOB_LIST = vgui.Create( "DPanelList", JOB_SIDE )
JOB_LIST:SetPos( 24, 44 )
JOB_LIST:SetSize( JOB_SIDE:GetWide() - 30, JOB_SIDE:GetTall() - 54 )
JOB_LIST:EnableVerticalScrollbar( true )
JOB_LIST:DockPadding( 0, 5, 10, 0 )
JOB_LIST.VBar.Paint = function( s, w, h )
draw.RoundedBox( 4, 3, 13, 8, h-24, Color(0,0,0,70))
end
JOB_LIST.VBar.btnUp.Paint = function( s, w, h ) end
JOB_LIST.VBar.btnDown.Paint = function( s, w, h ) end
JOB_LIST.VBar.btnGrip.Paint = function( s, w, h )
draw.RoundedBox( 4, 5, 0, 4, h+22, Color(0,0,0,70))
end

PopulateJobList()

JOB_SIDE:MoveTo( 28, 25, 0.2, 0, 0.2 )
--HOME_STATS:MoveTo( 222, 25, 0.4, 0.2, 0.1 )
--HOME_INFO:MoveTo( 28, 330, 0.6, 0.2, 0.1 )
end
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
function LoadAmmoPanel()

BG_HEADTEXT:SetText( "Munitions" )
BG_HEADTEXT:SizeToContents()

AMMO_MAIN = vgui.Create( "Panel", BG_MAIN )
AMMO_MAIN:SetSize( BG_MAIN:GetWide(), BG_MAIN:GetTall() )

local AMMO_WINDOW = vgui.Create( "Panel", AMMO_MAIN )
AMMO_WINDOW:SetSize( BG_MAIN:GetWide() - 56, BG_MAIN:GetTall() - 50 )
AMMO_WINDOW:SetPos( -200, 25 )
AMMO_WINDOW.Paint = function( self, w, h )
draw.RoundedBox( 2, 0, 0, w, h, Color( 239, 239, 239 ) )
draw.RoundedBox( 2, 1, 1, w - 2, h - 2, Color( 255, 255, 255 ) )

draw.SimpleText( "Munitions", "RP_SubFontThick", 24, 20, Color( 190, 190, 190 ) )

surface.SetDrawColor( Color( 242, 242, 242 ) )
surface.DrawLine( 24, 44, w - 26, 44 )
end

AMMO_LIST = vgui.Create( "DPanelList", AMMO_WINDOW )
AMMO_LIST:SetPos( 24, 44 )
AMMO_LIST:SetSize( AMMO_WINDOW:GetWide() - 30, AMMO_WINDOW:GetTall() - 54 )
AMMO_LIST:EnableVerticalScrollbar( true )
AMMO_LIST:DockPadding( 0, 5, 10, 0 )
AMMO_LIST.VBar.Paint = function( s, w, h )
draw.RoundedBox( 4, 3, 13, 8, h-24, Color(0,0,0,70))
end
AMMO_LIST.VBar.btnUp.Paint = function( s, w, h ) end
AMMO_LIST.VBar.btnDown.Paint = function( s, w, h ) end
AMMO_LIST.VBar.btnGrip.Paint = function( s, w, h )
draw.RoundedBox( 4, 5, 0, 4, h+22, Color(0,0,0,70))
end

for k, v in pairs( GAMEMODE.AmmoTypes ) do

local ammoFrame = vgui.Create( "DPanel" ) -- surface.DrawLine( 24, self:GetTall() - 44, self:GetWide() - 24, self:GetTall() - 44 )
ammoFrame:SetSize( AMMO_LIST:GetWide(), 60 )
ammoFrame.Paint = function( self, w, h )

surface.SetDrawColor( Color( 242, 242, 242 ) )

surface.DrawLine( 0, h - 1, w, h - 1 )

draw.SimpleText( string.upper(v.name), "RP_SubFontThick", 56, 14, Color( 0, 0, 0 ) )
draw.SimpleText( "PRIX : "..string.upper(v.price).." €", "RP_SubFontThick", 56, 30, Color( 190, 190, 190 ) )
end
ammoFrame.OnCursorEntered = function( self )

end
ammoFrame.OnCursorEntered = function( self )

end

AMMO_LIST:AddItem( ammoFrame )

ammoButton:SetSize( 90, 35 )
ammoButton:SetPos( ammoFrame:GetWide() - 110, (ammoFrame:GetTall() / 2) - 17.5 )
ammoButton:SetText( "Acheter" )
ammoButton:SetFont( "RP_ButtonFont" )
ammoButton:SetTextColor( Color( 255, 255, 255 ) )
ammoButton.Paint = function( self, w, h )
draw.RoundedBox( 4, 0, 0, w, h, Color( 239, 239, 243 ) )
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 237, 141, 62 ) )
draw.RoundedBox( 4, 2, 2, w - 4, h - 4, Color( 255, 115, 0 ) )

if self.hover then
draw.RoundedBox( 4, 1, 1, w - 2, h - 2, Color( 222, 100, 0 ) )
end
end
ammoButton.DoClick = function()
RunEntCmd( "buyammo "..v.ammoType )
end
ammoButton.OnCursorEntered = function(self)
self.hover = true
end
ammoButton.OnCursorExited = function(self)
self.hover = false
end

local ammoModel = vgui.Create( "SpawnIcon", ammoFrame )
ammoModel:SetSize( 52, 52 )
ammoModel:SetPos( 0, 8 )
ammoModel:SetModel( v.model )

end

AMMO_WINDOW:MoveTo( 28, 25, 0.2, 0, 0.2 )
--HOME_STATS:MoveTo( 222, 25, 0.4, 0.2, 0.1 )
--HOME_INFO:MoveTo( 28, 330, 0.6, 0.2, 0.1 )
end

coici les MUNITION
 
JokerCodz

JokerCodz

Geek
Messages
171
Score réaction
32
Points
80
Pourrai tu nous montrer ton jobs.lua ?
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
oui
 
  • J'aime
Réactions: JokerCodz
JokerCodz

JokerCodz

Geek
Messages
171
Score réaction
32
Points
80
T Job Marchait avant ? Car je pense que tu les a fait sur TCB et cela n'est plus tres fiable
 
  • Initiateur de la discussion
I

islem

Geek
Messages
50
Score réaction
3
Points
60
Alors quelqu'un sait
 
Discord d'entraide
Rejoignz-nous sur Discord