Environment
Information on the environment around your script.
Permissions
When a script is loaded, a set of permissions are available to toggle. If you’re using certain game mechanics, such as running transactions, it’s recommended to check that permissions were given first.
Permission Layout
| Flag | Purpose |
|---|---|
natives | Calling natives |
global_read | Reading script globals |
global_write | Writing script globals |
local_read | Reading script locals |
local_write | Writing script locals |
memory_read | Reading game memory |
memory_write | Writing game memory |
https | Sending web requests |
file_read | Reading files |
file_write | Writing files |
stat_read | Reading stats |
stat_write | Writing stats |
transactions | Running transactions |
📘 Note
In most cases, attempting to use a function without permissions will either do nothing or return an empty state.
if this.permissions() & permission.transactions == 0 then
print('Exiting script, need transactions')
this.unload()
return
end JOAAT
If you’re looking for a faster method of hashing text using the games native hashing method (JOAAT), you can use joaat.
local hash = joaat('adder')