![]() ![]() With giant monstrous spiders and ants crawling all over the place, a lot can go wrong in the world of Grounded. As one of several children the victim of a science experience gone wrong, you have to survive as a tiny ant-sized creature in your own backyard. settings.As well as upsetting a lot of arachnophobic gamers, Grounded has managed to create a truly unique survival game experience. tJob(value) - Sets the global 'job' to valueĭefault settings These are the settings you can change, these are the default values as well. Will create 2 new functions on the user ![]() tGlobal('global', 'default') - See example below Sets a global function on a user, call only once like on es:playerLoaded User.kick(reason) - Kicks user with specified reason User.displayBank(amount) - Same as above for bank, only use if using NativeUI option User.displayMoney(amount) - Used to display amount of money in UI User.addBank(amount) - Adds to the current amount of user bank balance User.removeBank(amount) - Removes from the current amount of user bank balance User.addMoney(amount) - Adds to the current amount of user money User.removeMoney(amount) - Removes from the current amount of user money tBankBalance(amount) - Sets the user bank balance User.get('item') - Can be used for all of the above User.getGroup() - Returns string of a users group User.getIdentifier() - Returns user identifier, most likely hex steamid64 User.getSessionVar(key) - Returns stored session variable User.getCoords() - Returns table(coords.x, coords.y, coords.z) User object (Available functions that you can use on the user) - Getters It will also log some errors that may happen WrappersĬlient wrappers for the user are available now, you can use these by either doing:Ĭlient_script user = exports.essentialmode:getUser() In any file you want to use it in, the previous statement will make the user table available in your entire resource.Īll the current wrappers can be found here You can enable logging by setting the default settings enableLogging to true, when you do that a log file will be created every day with what happened, for example when admin commands are ran or when someone is kicked. On how to implement your own data saving take a look at esplugin_mysql Logging
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |