WARNING: Most of the content on this site is for an older version of Garry's Mod. While a lot of it will still work in the current version of Garry's Mod - it might require some editing. If at all possible you should try to get addons from the Steam Workshop. Just sign in and press subscribe.
Subscribed Workshop addons will download, install and update automatically in game.
Lua coder? $10,000? Check out Official Fretta Gamemode Coding Contest.
Downloads | List All By: Age, Downloads Search:

E2 - Custom Table Script

Size: 2.15 KB - Uploaded - 689 Downloads (0 this week) - Uploaded by Fyxe

This adds 4 commands to the Expression 2 chip

It allows the user to read certain keys and values from the entity provided.

functions:

e:getKeys() - puts all available keys into an array
e:hasKey(s) - is "s" a valid key?
e:getNValue(s) - Number value of the key "s"
e:getSValue(s) - String value of the key "s"

small example included.

##reuqires Wiremod.. obviously
EXTRACT to ADDONS

Was made for RP.. but you can use it for anything else.

I was thinking of editing the RP Money Detector so that you can choose the speed at which it updates but then I decided to mess around with making e2 functions.. so wallah.


http://www.wiremod.com/forum/wiremod-addons/17013-e2-read-entity-tables.html#post164364
Link to this file:

(Forums)
(HTML)
 
members ( verified), online users, online members (CL)
contact/ feedback / suggestions



Powered by Steam | Facepunch Studios LTD