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

FlagPurpose
nativesCalling natives
global_readReading script globals
global_writeWriting script globals
local_readReading script locals
local_writeWriting script locals
memory_readReading game memory
memory_writeWriting game memory
httpsSending web requests
file_readReading files
file_writeWriting files
stat_readReading stats
stat_writeWriting stats
transactionsRunning 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')