Commands
This section lists all available commands included in the script. Each command is designed to simplify administration, player interaction, or debugging tasks. You’ll find detailed descriptions, usage examples, and permission requirements to help you manage and customize your server efficiently.
| Command | Description |
/givechips [id] [amount] | Administrative command to give chips, membership required. |
/deletemarket [id] | Command for the worker to open the job menu. |
Server Exports
This section provides all available server exports for the script. These functions allow developers to interact with the system from the server side, manage data, trigger actions, and integrate with other resources. Each export includes a clear description and a practical example to simplify its implementation.
Internally, the export logs the action (e.g., using a Debug function to output details like the identifier and the amount) to help with monitoring and troubleshooting.
This export requires the player's ID and the number of chips to deduct. It automatically processes the transaction and logs the action, making it an efficient way to manage casino chips.
The ToggleLockCasino export enables or disables the lock state of all casino doors based on the provided boolean value. When called, the function iterates through all the doors defined in Config.CasinoDoors, updating their locked status. It then notifies all clients about the change by triggering the casino:toggleLock event, and logs the action for debugging purposes.
This export is ideal for scenarios where you need to quickly secure or open access to the casino environment, ensuring that all associated doors are updated simultaneously.
