1. Post #81
    JustSoFaded's Avatar
    December 2011
    432 Posts
    1. Somebody made a rounded rectangle alternative using surface.DrawPoly (don't remember who, sorry) You could use that along with the stencil buffer.
    render.ClearStencil()
    render.SetStencilCompareFunction(STENCILCOMPARISONFUNCTION_ALWAYS)
    render.SetStencilPassOperation(STENCILOPERATION_REPLACE)
    render.SetStencilWriteMask(1)
    render.SetStencilReferenceValue(1)
    
    --Draw center rect
    
    render.SetStencilCompareFunction(STENCILCOMPARISONFUNCTION_EQUAL)
    
    --Draw outline rect
    
    

    2. You have to do that in modules to place the variables in the modules local environment (modules don't have access to the global environment unless you create them using the package.seeall parameter)
    Was that to me or to Panto? Also, if it was to Panto, how would you suggest doing a gradient outlined rect (I ask you because you seem to be pretty knowledgeable in the rendering section)?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  2. Post #82
    Sith121's Avatar
    February 2011
    31 Posts
    where can I find the Nexus mysql data
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 2Funny Funny x 1 (list)

  3. Post #83
    R@Rdeathmatch's Avatar
    November 2010
    860 Posts
    Is there any tutorial how to make a scoreboard from 0% ??
    I mean how to make it to open, how to show the player name,death,ping,kill.
    Reply With Quote Edit / Delete Windows XP Romania Show Events

  4. Post #84
    PROUD BRONY 4LYFE
    Drakehawke's Avatar
    February 2009
    3,312 Posts
    Is there any tutorial how to make a scoreboard from 0% ??
    I mean how to make it to open, how to show the player name,death,ping,kill.
    I've never been able to find a decent tutorial on it. Take a look at the GMod Lua source and how it's done in sandbox (for how to make one using custom vgui) or base (for how to make a simple one using just surface/draw).

    I recommend you use the custom vgui method, when I made mine I used surface/draw and then when I went to improve it and add more features, I had to convert it all to custom vgui anyway. But if you're new to Lua vgui can be quite hard to understand.
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events

  5. Post #85
    R@Rdeathmatch's Avatar
    November 2010
    860 Posts
    I've never been able to find a decent tutorial on it. Take a look at the GMod Lua source and how it's done in sandbox (for how to make one using custom vgui) or base (for how to make a simple one using just surface/draw).

    I recommend you use the custom vgui method, when I made mine I used surface/draw and then when I went to improve it and add more features, I had to convert it all to custom vgui anyway. But if you're new to Lua vgui can be quite hard to understand.
    I creat all ready the VGUI but I don't know how to add Name,Score,Play Time,Ping and 2 other thing.

    This is how is looking for moment =



    Reply With Quote Edit / Delete Windows XP Romania Show Events Artistic Artistic x 1 (list)

  6. Post #86
    PROUD BRONY 4LYFE
    Drakehawke's Avatar
    February 2009
    3,312 Posts
    Create a vgui panel for a players row, then loop through all the created players and create a panel for each one and add it to your scoreboard.
    Reply With Quote Edit / Delete Windows Vista United Kingdom Show Events

  7. Post #87
    R@Rdeathmatch's Avatar
    November 2010
    860 Posts
    The problem is I do not know how to do next.
    I don't know just vgui how to creat for moment.
    Reply With Quote Edit / Delete Windows XP Romania Show Events

  8. Post #88
    Fishbrain's Avatar
    June 2009
    26 Posts

    How can I make this so when I press the Pistols category the Submachine gun category will move down so it doesn't get in the way?
    Anyone help me on this?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Optimistic Optimistic x 1 (list)

  9. Post #89
    R@Rdeathmatch's Avatar
    November 2010
    860 Posts
    Anyone help me on this?
    Nobody answered to your first post.And now you quoted your own post ?

    Edited:

    Anyone help me on this?
    I think if someone would answers to this 1 :D
    Reply With Quote Edit / Delete Windows XP Romania Show Events

  10. Post #90
    Fishbrain's Avatar
    June 2009
    26 Posts
    Ermm yes because I would like to know a way to fix this seen as though I'm sure it's not hard.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  11. Post #91
    Fantym420's Avatar
    October 2010
    895 Posts
    Ermm yes because I would like to know a way to fix this seen as though I'm sure it's not hard.
    No, it's really not that hard, it's just addition, keep track of your Y values and your Heights, Let's assume "Pistols" is the first thing, so anything below it will be the "Pistols" Y pos + the height of the box showing the guns + any padding you want = Y value for next category.

    and the one after that would be the last categories Y + that box's height + any padding = next Y

    hope that helps
    Reply With Quote Edit / Delete Windows 7 United States Show Events Useful Useful x 1 (list)

  12. Post #92
    Fishbrain's Avatar
    June 2009
    26 Posts
    Would you be able to give an example? It would help alot.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  13. Post #93
    pennerlord's Avatar
    February 2011
    503 Posts
    Anyone help me on this?
    Are you using DCollapsibleCategory?
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  14. Post #94
    Fishbrain's Avatar
    June 2009
    26 Posts
    Yes I am
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  15. Post #95
    Gold Member
    ralle105's Avatar
    October 2005
    4,648 Posts
    Was that to me or to Panto? Also, if it was to Panto, how would you suggest doing a gradient outlined rect (I ask you because you seem to be pretty knowledgeable in the rendering section)?
    Panto.

    And I can't find anything on gradients I'm afraid.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events

  16. Post #96
    Hill0's Avatar
    May 2011
    68 Posts
    I'm new to Lua and sorry if this is dumb, but why doesn't this work? It prints this to console: "attempt to index global 'input' (a nil value)".

    if (input.IsMouseDown(MOUSE_WHEEL_DOWN) ) then
        Msg("test")
    
    end
    Reply With Quote Edit / Delete Windows 7 Finland Show Events

  17. Post #97
    pennerlord's Avatar
    February 2011
    503 Posts
    Anyone help me on this?
    Put your DCollapsibleCategorys into a DPanelList. Tested it and it works fine.
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  18. Post #98
    Gold Member
    ralle105's Avatar
    October 2005
    4,648 Posts
    I'm new to Lua and sorry if this is dumb, but why doesn't this work? It prints this to console: "attempt to index global 'input' (a nil value)".

    if (input.IsMouseDown(MOUSE_WHEEL_DOWN) ) then
        Msg("test")
    
    end
    You have to run it client-side.
    Reply With Quote Edit / Delete Windows 7 Sweden Show Events

  19. Post #99
    Title

    August 2009
    300 Posts
    I'm wanting to make a TAG sort of system and have the basic's of it. However just now I'm not doing it the best way possible. The way I would like it is that it reads from a TXT file as such. This is what I'm currently doing:

    local ADMINS = {"STEAM_0:1:16970247"}
    local VIPS = {"STEAM_0:0:22688997"}
    		 if table.HasValue(ADMINS, pl:SteamID()) then
    			self.m_RankLabel:SetText("ADMIN")
    			self.m_RankLabel:SetTextColor(COLOR_RED)
    			elseif table.HasValue(VIPS, pl:SteamID()) then
    				self.m_RankLabel:SetText("VIP")
    				self.m_RankLabel:SetTextColor(COLOR_YELOW)
    			else
    				self.m_RankLabel:SetText("Guest")
    				self.m_RankLabel:SetTextColor(COLOR_WHITE)
    		end
    

    I'm not to fond of reading/writing to files, had a quick look on the wiki but no luck. I also couldn't get my head around using SetPData for multiple SteamID's.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  20. Post #100
    Gold Member
    marvincmarvin's Avatar
    January 2011
    795 Posts
    This should work..
    local function getAdmins()
    	if !file.Exists("tagthinger/admins.txt") then return {} end
    	return string.Explode(";;", file.Read("tagthinger/admins.txt"))
    end
    
    local function getVIPS()
    	if !file.Exists("tagthinger/vips.txt") then return {} end
    	return string.Explode(";;", file.Read("tagthinger/vips.txt"))
    end
    
    function yourtable:yourfunc()
    	if table.HasValue(getAdmins(), pl:SteamID()) then
    		self.m_RankLabel:SetText("ADMIN")
    		self.m_RankLabel:SetTextColor(COLOR_RED)
    	elseif table.HasValue(getVIPS(), pl:SteamID()) then
    		self.m_RankLabel:SetText("VIP")
    		self.m_RankLabel:SetTextColor(COLOR_YELOW)
    	else
    		self.m_RankLabel:SetText("Guest")
    		self.m_RankLabel:SetTextColor(COLOR_WHITE)
    	end
    end
    

    data/tagthinger/admins.txt
    STEAM_0:1:16970247;;[steamidhere]
    
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  21. Post #101
    Gold Member
    confinedUser's Avatar
    October 2008
    3,597 Posts
    I'm having a problem with '}' expected (to close '{' at line 73) near text_spacing

    good_hud = { };
    
    local function clr( color ) return color.r, color.g, color.b, color.a; end
    
    function good_hud:PaintBar (x, y, w, h, colors, value )
    
    self:PaintPanel(x, y, w, h, colors )
    
    x = x + 1; y = y + 1;
    w = w - 2; h = h - 2;
    
    surface.SetDrawColor( clr( colors.background ) );
    surface.DrawRect( x, y, w, h );
    
    local width = w * math.Clamp( value, 0, 1 );
    local shade = 4;
    
    surface.SetDrawColor( clr( colors.shade ) );
    surface.DrawRect( x, y, width, shade );
    
    surface.SetDrawColor( clr( colors.fill ) );
    surface.DrawRect ( x, y + shade, width, h - shade );
    
    end
    
    local Colors =
    {
    	border = Color( 255, 255, 255, 255),
    	background = Color( 255, 255, 255, 200 ),
    	shade = Color( 255, 255, 255, 255 ),
    	fill = Color( 0, 0, 0, 255 ),
    };
    
    good_hud:PaintBar( 50, 50, 250, 16, colors, 0.75 );
    
    function good_hud:paintPanel (x, y, w, h, colors )
    
    surface.SetDrawColor( clr( colors.border ) );
    surface.DrawOutlinedRect( x, y, w, h );
    
    end
    
    function good_hud:PaintText( x, y, text, font, colors )
    	surface.SetFont( font );
    	
    	surface.SetTextPos( x + 1, y + 1);
    	surface.SetTextColor( clr( colors.shadow ) );
    	surface.DrawText( text );
    	
    	surface.SetTextPos( x, y );
    	surface.SetTextColor( clr( colors.text ) );
    	surface.DrawText( text );
    	
    	end
    	
    	local colors =
    	{
    		shdow = Color( 0, 0, 0, 155 ),
    		text = Color(255, 255, 255, 255 )
    		
    	};
    	
    	good_hud:PaintText( 50,50, "Health", "Armor", colors );
    	
    	function good_hud:TextSize( text, font )
    	
    		surface.SetFont( font );
    		return surface.GetTextSize( text );
    		
    	end
    	
    	local vars =
    	{
    		font = "TargetID",
    		
    		padding = 10,
    		margin = 35
    		
    		text_spacing = 2,
    		bar_spacing = 5,
    		
    		bar_height = 16,
    		
    		width = 0.25
    		
    	};
    	
    	local colors =
    	{
    		background =
    		{
    		border = Color( 190, 255,128, 255 ),
    		background = Color( 120, 240, 0, 75 )
    		},
    		
    		text =
    		{
    			shadow = Color(0, 0, 0, 200 ),
    			text = Color( 255, 255, 255, 255 )
    		},
    		
    		health_bar =
    		{
    		border = Color( 255, 0, 0, 255 ),
    		background = Color( 255, 0, 0, 75 ),
    		shade = Color( 255, 104, 104, 255 ),
    		fill = Color( 232, 0, 0, 255 )
    		
    		},
    		
    		suit_bar =
    		{
    			border = Color( 0, 0, 255, 255 ),
    			background = Color( 0, 0, 255, 75 ),
    			shade = Color( 136, 136, 255, 255 ),
    			fill = Color( 0, 0, 219, 255 )
    		}
    	};
    	
    	local function HUDPaint( )
    	client = client or LocalPlayer( );
    	if( !client:Alive( ) ) then return; end
    	
    	local _, th = good_hud:TextSize( "TEXT", vars.font );
    	
    	local i = 2;
    	
    	local width = vars.width * ScrW( );
    	local bar_width = width - ( vars.padding * i );
    	local height = ( vars.padding * i ) + ( th * i ) + ( vars.text_spacing * i ) + ( vars.bar_height * i ) + vars.bar_spacing;
    	
    	local x = vars.margin;
    	local y = ScrH( ) - vars.margin - height;
    	
    	local cx = x + vars.padding;
    	local cy = y + vars.padding;
    	
    	good_hud:PaintPanel( x, y, width, height, colors.background );
    	
    	local by = th + vars.text_spacing;				-- calc text position
     
    	local text = string.format( "Health: %iHP", client:Health( ) );	-- get health text
    	good_hud:PaintText( cx, cy, text, vars.font, colors.text );	-- paint health text and health bar
    	good_hud:PaintBar( cx, cy + by, bar_width, vars.bar_height, colors.health_bar, client:Health( ) / 100 );
     
    	by = by + vars.bar_height + vars.bar_spacing;			-- increment text position
     
    	local text = string.format( "Suit: %iSP", client:Armor( ) );	-- get suit text
    	good_hud:PaintText( cx, cy + by, text, vars.font, colors.text );	-- paint suit text and suit bar
    	good_hud:PaintBar( cx, cy + by + th + vars.text_spacing, bar_width, vars.bar_height, colors.suit_bar, client:Armor( ) / 100 );
    	
    	end
    	hook.Add("HUDPaint", "PaintOurHud", Hudpaint );
    	

    Edited:

    located near the "local vars =" part
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  22. Post #102
    Gold Member

    April 2009
    726 Posts
    I'm having a problem with '}' expected (to close '{' at line 73) near text_spacing

    located near the "local vars =" part
    You forgot a "," after margin = 35
    Reply With Quote Edit / Delete Windows 7 Denmark Show Events

  23. Post #103
    pennerlord's Avatar
    February 2011
    503 Posts
    I'm having a problem with '}' expected (to close '{' at line 73) near text_spacing

    -code-
    Can you please use [Lua][/Lua] tags?
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  24. Post #104
    Title

    August 2009
    300 Posts
    This should work..
    local function getAdmins()
    	if !file.Exists("tagthinger/admins.txt") then return {} end
    	return string.Explode(";;", file.Read("tagthinger/admins.txt"))
    end
    
    local function getVIPS()
    	if !file.Exists("tagthinger/vips.txt") then return {} end
    	return string.Explode(";;", file.Read("tagthinger/vips.txt"))
    end
    
    function yourtable:yourfunc()
    	if table.HasValue(getAdmins(), pl:SteamID()) then
    		self.m_RankLabel:SetText("ADMIN")
    		self.m_RankLabel:SetTextColor(COLOR_RED)
    	elseif table.HasValue(getVIPS(), pl:SteamID()) then
    		self.m_RankLabel:SetText("VIP")
    		self.m_RankLabel:SetTextColor(COLOR_YELOW)
    	else
    		self.m_RankLabel:SetText("Guest")
    		self.m_RankLabel:SetTextColor(COLOR_WHITE)
    	end
    end
    

    data/tagthinger/admins.txt
    STEAM_0:1:16970247;;[steamidhere]
    
    Whats
    function yourtable:yourfunc()
    ?

    Edit: Fixed it anyway, just removed that.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  25. Post #105
    Fantym420's Avatar
    October 2010
    895 Posts
    So i'm trying to find a way to stop my player marble from bouncing, I'm doing custom gravity and I basically need to ball to stick close to the surface it's on, i'm doing gravity in the PhysicsUpdate Hook, and the gravTrace is done in the think hook and stored( PhysicsUpdate runs way too fast for traces imo).

    While my code works and gravity goes where it is supposed to, I bounce up and down a lot, not jumpy, but like a ball bouncy.

    
    local physDeltaTime =  CurTime()
    function ENT:PhysicsUpdate( phys )
    	
    	-- No grav trace then no gravity yet
    	if !self.lastGravTrace then return end
    
    	local physDelta = CurTime() - physDeltaTime
    	physDeltaTime = CurTime()
    	
    	-- Set the goal point for the player marble to the gravity hit pos - 1/2 the radius of the marble
    	-- and compute movement normal
    	local gravDiff = (self.lastGravTrace.HitPos - (self.lastGravTrace.HitNormal * (self:BoundingRadius() * 0.5))) - self:GetPos()
    
    	-- calculate velocity based on 9.8 ft per sec ( 16 units = 1 foot) (16 * 9.8) * 60 = 9408 
    	local gravVel = (gravDiff:GetNormal() * (9408 * physDelta))
    	
    	-- apply gravity
    	phys:AddVelocity(gravVel * physDelta)
    	
    end
    
    

    any help is always appreciated.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  26. Post #106
    wizardsbane's Avatar
    January 2008
    372 Posts
    So i'm trying to find a way to stop my player marble from bouncing, I'm doing custom gravity and I basically need to ball to stick close to the surface it's on, i'm doing gravity in the PhysicsUpdate Hook, and the gravTrace is done in the think hook and stored( PhysicsUpdate runs way too fast for traces imo).

    While my code works and gravity goes where it is supposed to, I bounce up and down a lot, not jumpy, but like a ball bouncy.

    
    local physDeltaTime =  CurTime()
    function ENT:PhysicsUpdate( phys )
    	
    	-- No grav trace then no gravity yet
    	if !self.lastGravTrace then return end
    
    	local physDelta = CurTime() - physDeltaTime
    	physDeltaTime = CurTime()
    	
    	-- Set the goal point for the player marble to the gravity hit pos - 1/2 the radius of the marble
    	-- and compute movement normal
    	local gravDiff = (self.lastGravTrace.HitPos - (self.lastGravTrace.HitNormal * (self:BoundingRadius() * 0.5))) - self:GetPos()
    
    	-- calculate velocity based on 9.8 ft per sec ( 16 units = 1 foot) (16 * 9.8) * 60 = 9408 
    	local gravVel = (gravDiff:GetNormal() * (9408 * physDelta))
    	
    	-- apply gravity
    	phys:AddVelocity(gravVel * physDelta)
    	
    end
    
    

    any help is always appreciated.
    Is 600 (the usual gravity number) a representation of gravitational acceleration or velocity in Gmod units?

    This is a bit tough. I'm trying to think of how you're going about this which is weird because I would've done it a different way (that probably would have failed).

    If you know the displacement, the gravitational acceleration (which I'm assuming is 600 gmodunits/s^2), and the time you can use this equation to find the initial velocity which you can treat as a constant I think (unless you want to get all jiggy with the kinematics equations and make it ultra-realistic):

    d = v0 * t + 0.5*a*t^2

    d = +/- gravDiff depending on orientation
    t = physDelta
    a = +/- 600 depending on orientation

    and then just solve for v0.

    Honestly just throwing things out there because what you're doing looks really cool and I want you to be able to fix this.
    Reply With Quote Edit / Delete Windows Vista United States Show Events

  27. Post #107
    Title

    August 2009
    300 Posts
    Whats
    function yourtable:yourfunc()
    ?

    Edit: Fixed it anyway, just removed that.

    Okay well it seems to not work, I've tried printing the table and it comes back blank. the files do exist, and have my steamID in, however it's not working. It's always returning to guest.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  28. Post #108
    Gold Member
    confinedUser's Avatar
    October 2008
    3,597 Posts
    How do i fix the attempt to call "PaintPanel" (a nil value) thing. I tried removing two extra lines of code i forgot to remove since it wasn't needed because of the paint panel, i tried adding this ";" at the end of it and nothing works
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  29. Post #109
    pennerlord's Avatar
    February 2011
    503 Posts
    How do i fix the attempt to call "PaintPanel" (a nil value) thing. I tried removing two extra lines of code i forgot to remove since it wasn't needed because of the paint panel, i tried adding this ";" at the end of it and nothing works
    Line 77:
    margin = 35,
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  30. Post #110
    Gold Member
    marvincmarvin's Avatar
    January 2011
    795 Posts
    Okay well it seems to not work, I've tried printing the table and it comes back blank. the files do exist, and have my steamID in, however it's not working. It's always returning to guest.
    Do you have those functions defined outside of the function your calling it from?
    Do you have the text files parsed as I had it?
    Are the text files in the right directory?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  31. Post #111
    Gold Member
    confinedUser's Avatar
    October 2008
    3,597 Posts
    Line 77:
    margin = 35,
    i added that it fixed my previous issue but created this one.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  32. Post #112
    Title

    August 2009
    300 Posts
    Do you have those functions defined outside of the function your calling it from?
    Do you have the text files parsed as I had it?
    Are the text files in the right directory?
    No,
    Yes,
    Yes.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  33. Post #113
    Fishbrain's Avatar
    June 2009
    26 Posts
    Put your DCollapsibleCategorys into a DPanelList. Tested it and it works fine.
    Cheers
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 1 (list)

  34. Post #114
    Gold Member
    raBBish's Avatar
    March 2007
    2,667 Posts
    How do i fix the attempt to call "PaintPanel" (a nil value) thing. I tried removing two extra lines of code i forgot to remove since it wasn't needed because of the paint panel, i tried adding this ";" at the end of it and nothing works
    function good_hud:paintPanel (x, y, w, h, colors )

    Your paintPanel has a lower case P. You're trying to call PaintPanel with capital P.
    Reply With Quote Edit / Delete Windows 7 Finland Show Events

  35. Post #115
    JerkyNero's Avatar
    January 2012
    53 Posts
    Does anyone know how to code for OpenAura? Like items, factions, and weapons to put in? I find this system one of the most hardest to cooperate with but it is really worth it once you got some Passive RPers in there.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  36. Post #116
    Fantym420's Avatar
    October 2010
    895 Posts
    Is 600 (the usual gravity number) a representation of gravitational acceleration or velocity in Gmod units?

    This is a bit tough. I'm trying to think of how you're going about this which is weird because I would've done it a different way (that probably would have failed).

    If you know the displacement, the gravitational acceleration (which I'm assuming is 600 gmodunits/s^2), and the time you can use this equation to find the initial velocity which you can treat as a constant I think (unless you want to get all jiggy with the kinematics equations and make it ultra-realistic):

    d = v0 * t + 0.5*a*t^2

    d = +/- gravDiff depending on orientation
    t = physDelta
    a = +/- 600 depending on orientation

    and then just solve for v0.

    Honestly just throwing things out there because what you're doing looks really cool and I want you to be able to fix this.
    Well thanks for trying, but either i don't understand the equation or it's just not working for me. I'll keep trying, a class in physics wouldn't hurt either i suppose.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  37. Post #117
    wizardsbane's Avatar
    January 2008
    372 Posts
    Well thanks for trying, but either i don't understand the equation or it's just not working for me. I'll keep trying, a class in physics wouldn't hurt either i suppose.
    You're probably doing something right but I'm just not seeing it due to my limited knowledge of physics and so that concept may very well be unnecessary or incompatible with how you implemented gravity. Like I said, just throwing stuff out there that might work or be useful.
    Reply With Quote Edit / Delete Windows Vista United States Show Events

  38. Post #118
    Gold Member
    confinedUser's Avatar
    October 2008
    3,597 Posts
    function good_hud:paintPanel (x, y, w, h, colors )

    Your paintPanel has a lower case P. You're trying to call PaintPanel with capital P.
    oops haha silly me thanks

    Edited:

    ok fixed it still giving me this bullshit. I'm going to take a closer look at it when im not tired. I might be missing something that needs to be fixed. If not I'll come back
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  39. Post #119
    Gold Member
    confinedUser's Avatar
    October 2008
    3,597 Posts
    ok I can't seem to find the problem this is the last time I use the gmod lua wiki for tutorials as it's very horrible.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  40. Post #120
    Jinx786's Avatar
    October 2010
    380 Posts
    How would I make an if(LocalPlayer() is driving a vehicle) please?
    Reply With Quote Edit / Delete Windows 7 Slovenia Show Events