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

client

Returns 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')
end

isVip

client

Returns 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
end

toggleSafezone

client

Sets 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

NameTypeDescription
statebooleantrue 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'))

Still stuck?

Open a ticket in our Discord and we'll help you out.

Join Discord →
Casino · Exports — Documentation