Garry's Mod

Garry's Mod

Not enough ratings
EGP V3 for DarkRp and General use!
By Vex | Vers.gg
How to use EGP to your advantage!
   
Award
Favorite
Favorited
Unfavorite
EGP Overview
EGP V3 can be used fo signs or for Auto Gunstores! There are many more uses but for the sake of time we will cover the basics so that you may learn and create your own things. You do need access to E2 so first things first, let us also do some basic background knowledge of E2.
E2 coverage
Now once you have selected your E2 tool and opened the GUI, it might be confusing,
@name = The name of your expression
@inputs = Used to input the code into something else
@outputs = Used to input another component to the E2
@persist = Constant variable / boolean etc
@trigger = Trigger function, meaning if something is true then run this or vice versa. if shoot is pressed then do this.

Undestanding EGP
Now EGP is not as confusing as it may appear, these are the basics of it used to create anything you please.

egpBox(index, vec2(), vec2()) = This means, index is like photoshop so index == 1 is layer one etc, vec2 can either be the scale or the positioning of the EGP object itself for instance

egpBox(1, vec2(255,255), vec2(500,500)) = First index meaning that this is the background we will be building off of, the first vec2 is the positioning from the EGP itself, and the second vec2 is the scale of the EGP Object

The various objects that you can have are,

egpBox
egpCircle
egpWedge
egpTriangle
egpLine
egpRoundedBox
egpLineStrip
egpPoly
Creating a simple sign!
Let's create a simple sign that says "Hello there!", with a nice font colour and background.

So first things first select the EGP tool and set it to Emitter mode, then place it down anywhere, nect select your E2 tool and place an E2 chip next to it. (NOTE; If you cannot see the EGP display rotate until you can.)

Now let's start coding the sign itself; we wil need the following to start.

@name EGP Tutorial Sign
@inputs E:wirelink #E:wirelink means that it is how the chip will connect with the EGP itself. Notice you will have to put E: infront of every element or object for the EGP since that is the way it has been defined E.G if we put EGP:wirelink we would have to put EGP:egpBox but for this we only have to use E:egpBox

Now we can pull out our Advacned Wiring tool and click on the E2 chip selecting the Wirelink option and linking it to the EGP itself, now the EGP will be blank as we have not added anything, then we add the following once we have linked the two together

@name EGP Tutorial Sign
@Inputs E:wirelink

if(first()|~E|duped()) # This just means if the code is run for the first time or duped or linked then run the following
{

E:egpClear() # Stop EGP's from playing up if you edit them a lot of remove a few very useful

E:egpBox(1, vec2(255,255), vec2(500,300))
E:egpColor(1, vec4(120,60,0,255)) # The way color works is by selecting the number of the object such as the box which is number 1, then we add a vec4 for color meaning vec4(RED,GREEN,BLUE,ALPHA ) so that will be a nice orange.

}

Next we add some Text and change the Font and color for said text,

@name EGP Tutorial Sign
@inputs E:wirelink

if(first()|~E|duped())
{

E:egpClear()

E:egpRoundedBox(1, vec2(255,255), vec2(500,300))
E:egpColor(1, vec4(120,60,0,255))

E:egpText(2, "Hello there!", vec2(120,225)) # Text is a bit different we only have one vector for postioning, the text must always be between quotation marks.
E:egpSize(2, 62) # This is how we change the size of the text notice that we use the same index to edit the text as we used to create said text
E:egpFont(2, "Times New Roman") # Chaging the font, you can look up all of the different fonts avaliable for EGP
E:egpColor(2, vec4(0,60,120,255)) # Simply changing the text to a nice Blue color


}
If you require help!
If this guide was too hard to understand add me on Steam and I will be happy to assist you! If you have any issues with creating your own things you may add me as well and I will attempt to help you, I hope that this guide helped you, ciao.
5 Comments
HawkKing Sep 6, 2023 @ 8:17pm 
doodoo fart
Vex | Vers.gg  [author] May 1, 2019 @ 4:14am 
@TheOrangeBottleCap Really isn't could have made that much easier to understand. But was a long time ago.

@stonkerz You need Gmod and a server with it installed.
stickerz Jan 11, 2019 @ 10:10pm 
where can i download EGP?
TheOrangeBottleCap Oct 29, 2017 @ 6:02pm 
eeeeeeh.... ( :/ jesus thats confusing no wonder i stick with the basics
Alface Sep 20, 2017 @ 7:50am 
Thanks!