ESX
Theesx module exists on the server only. It wraps common ESX item and account operations and returns false when the player source or payload is invalid.
Give and remove items
Add and remove account money
Transactions
transactions(playerSource, entries) is the lower-level primitive used by the helper methods. Each transaction is { action, argsList }.
The module validates payload shape before applying transactions. It returns
false for malformed entries, missing players, or unknown transaction actions.API
function
required
Gives one inventory item to a player.
function
Gives multiple inventory items. Each entry must include
itemName and numeric amount.function
required
Removes one inventory item from a player.
function
Removes multiple inventory items.
function
required
Adds money to one ESX account.
function
required
Removes money from one ESX account.
boolean
All ESX helper methods return
true when the operation is accepted and false when validation or player lookup fails.