Casino·exports
Exports
DS-Casino exposes a handful of client-side exports for querying player state and toggling the casino safezone from your own client scripts.
isInCasino
clientReturns whether the local player is currently inside the casino zone.
Signature
Lua
exports['DS-Casino']:isInCasino()Returns
boolean
true while the player is inside the casino.
Example
Lua
if exports['DS-Casino']:isInCasino() then
print('Player is inside the casino')
endisVip
clientReturns whether the local player currently has VIP status.
Signature
Lua
exports['DS-Casino']:isVip()Returns
boolean
true if the player is a VIP, otherwise false.
Example
Lua
if exports['DS-Casino']:isVip() then
-- grant VIP-only perks
endtoggleSafezone
clientSets the casino safezone state, which disables combat controls and jumping. When enabled while the player is already inside the casino, the safezone starts immediately; otherwise the flag is stored and applied the next time the player enters.
Signature
Lua
exports['DS-Casino']:toggleSafezone(state)Parameters
| Name | Type | Description |
|---|---|---|
| state | boolean | true to enable the safezone, false to disable it. |
Returns
boolean
The resulting safezone state.
Example
Lua
local enabled = exports['DS-Casino']:toggleSafezone(true)
print(('Safezone is now %s'):format(enabled and 'on' or 'off'))