What do you need help with? V3

http://dl.dropbox.com/u/26392940/r1Bnl.png

(3)

Lua questions that don’t deserve their own thread go here.
This means things like:
How to add jobs in DarkRP,
Where to find PERP,
How to shoot ponies out of a gun.
and if your IQ is above 30, then things like why vehicles aren’t working on Linux servers.

**COOL STUFF TO LOOK AT!
**General Faqs: http://www.facepunch.com/threads/868561-Need-help-READ-THIS-FIRST
HOW TO LUA?: http://wiki.garrysmod.com/?title=Lua_Tutorial_Series
GLUA WIKI: http://wiki.garrysmod.com

Previous threads that your probably wont look at:
Thread 1
Thread 2

Where do I find PERP?

on dramaunlimited :smiley:
lol

1.
Could someone give me a link were I can find gui.OpenURL?
Cause I want to creat a button that ween is pressed will open a webpage.
2.
Is there any tutorial how to creat circle ?

These aren’t hard to find you know.

My other thread like, died or something so This is what I have just now:

[lua]
hook.Add(“PhysgunPickup”, “SetVarOn”, function(ply, ent)
ent.DontPush = 1
end)
hook.Add(“PhysgunDrop”, “SetVarOff”, function(ply, ent)
ent.DontPush = 0
end)
hook.Add( “ShouldCollide”, “StopMinges”, function(ent1,ent2)
if (ent1.DontPush == 1 || ent2.DontPush == 1) and (ent1:IsPlayer() || ent2:IsPlayer()) then

	ent1:SetColor( 255, 255, 255, 200 )
	return false
	else
	ent1:SetColor( 255, 255, 255, 255 )
end

end)
[/lua]

Problem is, it goes through players but if it collides with something or someone shoots someone they go ghosted. I need the prop you pick up to only nocollide with players and not any other props.

Abot the Gui.OpenURL. After I creat the button using vgui.creat
[lua]
Tab = vgui.Create( “DPropertySheet”)
Tab:SetParent( Banner )
Tab:SetPos( 248, 120 )
Tab:SetSize( 215, 60 )
[/lua]
And someone told me that I need to creat a GUI.Panel, and is not possible to add gui.OpenURL inside the button.

[editline]2nd February 2012[/editline]

And I want to ask if is possible to add Custom Font.

Don’t set the color in the collision hook. Also, changing the collisions like that would normally break the physics engine.

[lua]function _R.Entity:CollisionRulesChanged() – http://www.facepunch.com/threads/1150631
– HACK!
local cg = self:GetCollisionGroup()
self:SetCollisionGroup(COLLISION_GROUP_DEBRIS)
self:SetCollisionGroup(cg)
end

hook.Add(“PhysgunPickup”, “SetVarOn”, function(ply, ent)
ent.DontPush = true
ent:SetColor( 255, 255, 255, 200 )
ent:CollisionRulesChanged()
end)

hook.Add(“PhysgunDrop”, “SetVarOff”, function(ply, ent)
ent.DontPush = false
ent:SetColor( 255, 255, 255, 255 )
ent:CollisionRulesChanged()
end)

hook.Add( “ShouldCollide”, “StopMinges”, function(ent1,ent2)
if (ent1.DontPush || ent2.DontPush) and (ent1:IsPlayer() || ent2:IsPlayer()) then
return false
end
end)[/lua]

Try that.

Anyone know of an up-to-date list of particle effects in HL2 that doesn’t involve me going to the game’s internal editor?

Just need some debug particles that look semi-pretty.

I need help taking the blood effect and setting it to follow dead bodies. (ParticleEffectAttach)

How would I create a simple speedometer that shows speed on a cars dashboard in digital (a number)? Thanks.

Guys this is “help with” thread, not “ask for people to do it for you” thread, go do your homework and come back asking why something is not working as you think it would!
@Killer_Steel: The Source engine wiki has a complete list of effects, google it
@Mogarf: Read the gmod Lua wiki, there should be some pointers on how to use the particle functions around there
@Jinx786: I’d suggest you read the HUD tutorials in the wiki and then read a bit of the “ent” class, you should be able to figure it out from there.

Are you even trying to search for these, at all?

Yes i’m trying but gmod.wiki is not working properly.

[editline]3rd February 2012[/editline]

About Custom Font, I don’t want to add this : http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5b6d.html?title=Working_with_Fonts
I want to try this.http://www.dafont.com/batman-forever.font

If you do not understand, the first argument is the (custom) font.
Since clients probbly do not have the custom font, you have to resource.AddFile it.
Custom fonts go into resources/fonts.

This is everything what I want to know. Thx

Does anybody have a code snippet for a decent looking chat and scoreboard?

That’s not exactly a ‘code snippet’. If either work well or are decent lookings between the 2 it will be atleast 750 lines.

I dont mean something really advanced, Just something that looks nice and operates like the normal GMod Chat and Scoreboard.