Documentation Index
Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt
Use this file to discover all available pages before exploring further.
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 }.
| Action | ESX method |
|---|---|
1 | xPlayer.addInventoryItem |
-1 | xPlayer.removeInventoryItem |
2 | xPlayer.addAccountMoney |
-2 | xPlayer.removeAccountMoney |
The module validates payload shape before applying transactions. It returns
false for malformed entries, missing players, or unknown transaction actions.API
Gives one inventory item to a player.
Gives multiple inventory items. Each entry must include
itemName and numeric amount.Removes one inventory item from a player.
Removes multiple inventory items.
Adds money to one ESX account.
Removes money from one ESX account.
All ESX helper methods return
true when the operation is accepted and false when validation or player lookup fails.