Garry's Mod

Garry's Mod

80 ratings
Extra E2 Functions (EEF)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
3.376 KB
13 Mar, 2015 @ 5:38am
15 Apr, 2017 @ 6:35am
35 Change Notes ( view )

Subscribe to download
Extra E2 Functions (EEF)

In 2 collections by EXTRA MENTAL
IBAJ Build Collection
92 items
Bright Spark Build
93 items
Description
EEF converts most of the useful LUA functions into E2 functions.

Main Functions
E:getGroundEntity() - Gets the entity that a player/NPC is standing on.
E:isMapMade() - Is the entity created by the map?
E:timeCreated() - Gets the time that the entity was created in relation server start.
E:hasBoneManipulations() - Can the entities bones be manipulated?
E:isRagdoll() - Is the entity a ragdoll?
E:mapCreationID() - Gets the map creation ID of an entity, this ID wont change unless the map is edited. Returns -1 if the entity is not created by the map.
E:removeDecals() - Removes all decals from the entity. (Crowbars are no longer a nuisance!)
E:isPersistent() - Is the entity persistent?
E:waterLevel() - How deep is the entity in the water? 0 - Not in water. | 1 - Touching in water. | 2 - Half in water. | 3 - Fully under water.
E:canUseFlashlight() - Can the player use their flashlight?
E:getHands() - Gets the players hands.
E:canColideWithTeam() - Can the player collide with team mates?
E:getRagdoll() - Gets the players death ragdoll.
E:getWeapons() - Gets a list of weapons this player has.
E:isBot() - Is the player a bot?
E:isConnected() - Is the player (entity) connected to the server?.
E:isAuth() - Is the player authenticated with steam network?
E:isHostPlayer() - Is this player hosting the local server? (Not the same as server owner.)
E:steamID64() - Gets the 64 bit version of the players steam ID
E:stress() - Gets the physical stress being applied on the entity.
E:getAnimID() - Gets the current animation ID of the entity.
E:getAnimList() - Gets the entities list of animations as strings.
E:held() - Returns the last entity the player attempted to physgun.
E:inGod() - Is the player in god mode?
E:setUnbreakable(N) - Set if the entity can be broken by physics.
E:keepUpright(N, N) - Apply keep upright to the entity. Args: (BoneID, Strength)

killOwner() - Kills the owner of the E2.
freezeOwner(N) - Freezes the owner preventing control such as WASD and mouse movement, removing the initial E2 that froze you will automatically unfreeze you if you get stuck.

Event Functions
runOnPlyConnect(N) - Enable or disable this E2 execution on player connect/spawn/disconnect.
plyConnectClk() -Returns 1 if the E2s execution was caused by a player connecting.
plyConnectName() - Returns the name of the player that just connected to the server. (It cannot return the player entity as it hasnt been created yet)
plySpawnClk() - Returns 1 if the E2s execution was caused by a player spawning.
plySpawn() - Returns the player that spawned.
plyDisconnectClk() - Returns 1 if the E2s execution was caused by a player disconnecting.
plyDisconnect() - Returns the player that disconnected.

Important Information
All bugs, crashes and errors should be reported here so I can resolve them.

If the functions arent working they may be disabled. You will need to enter a command in your console.
Latest version: wire_expression2_extension_enable EFF
Older versions: wire_expression2_extension_enable e2extras
You may need to restart your client/server for it to take affect.
29 Comments
Revenant Moon sups.gg 10 Sep @ 10:36am 
it isn't, the problem is you are referencing a variable that has yet to be set.
EXTRA MENTAL  [author] 25 Dec, 2021 @ 5:12pm 
Rooki 24 Dec, 2021 @ 4:31am 
it got updated so that wrong hook.adds() isnt silently failed

Is that an empty hook.Add()??? or check gmod wiki
EXTRA MENTAL  [author] 23 Dec, 2021 @ 2:41pm 
that is an error involving my code yes but it says its errored on a commented line, the code around it hasnt chaned in 6 years so idk what its problem is
Rooki 20 Dec, 2021 @ 11:02am 
Is it possible that this error is yours? [Wiremod] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:31
2. unknown - entities/gmod_wire_expression2/core/custom/e2extras.lua:6
3. pcall - [C]:-1
4. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:88
5. pcall - [C]:-1
6. e2_include_finalize - lua/entities/gmod_wire_expression2/core/extloader.lua:101
7. unknown - lua/entities/gmod_wire_expression2/core/extloader.lua:172
8. include - [C]:-1
9. unknown - lua/entities/gmod_wire_expression2/core/init.lua:195
10. include - [C]:-1
11. unknown - lua/entities/gmod_wire_expression2/shared.lua:26
12. include - [C]:-1
13. unknown - lua/entities/gmod_wire_expression2/init.lua:3

On Startup after the new update
Sanders 1 Jun, 2019 @ 11:28am 
ok ill get it when the e2 fails again and paste it here lol sorry i was tired when i posted lol
EXTRA MENTAL  [author] 31 May, 2019 @ 11:14pm 
need more info than that
Sanders 28 May, 2019 @ 12:25pm 
E:getWeapons() breaks an e2 if the entity is a player / npc it kills the e2..........
Harry V1.15.4 8 Nov, 2018 @ 5:17am 
For other people?
EXTRA MENTAL  [author] 8 Nov, 2018 @ 12:54am 
why did you ask me to do it when you can do it yourself?