cityrp.pcasino
Perfect Casino Integration (client).
- Sharedcityrp.pcasino.BoundGrantMeta(itemID) → string|unknown|nilSource ☍
-
Build the inventory meta key used when granting a bound casino prize.
Parameters
- itemIDany
Returns
- string|unknown|nil
- Sharedcityrp.pcasino.GroupWheelSegments(segments) → table[]Source ☍
-
Combine wheel segments awarding the same reward (same
f+i) into one row with summed probability.Parameters
- segmentstable[]Wheel segments, each with
n(label),f(payout function id),i(amount) andp_seg(per-segment probability).
Returns
- table[]One row per distinct reward, in first-seen order.
- segmentstable[]Wheel segments, each with
- Sharedcityrp.pcasino.IsBoundMeta(item, meta) → booleanSource ☍
-
Parameters
- itemstring|table
- meta(string|table)?
Returns
- boolean
- Clientcityrp.pcasino.OpenOddsMenu(focusId)Source ☍
-
Build the odds browser.
Parameters
- focusIdany
- Servercityrp.pcasino.AutoExcludeTiersSource ☍
-
Ascending tiers that trigger automatic, escalating self-exclusion. A tier is reached when either tally passes its own threshold.
durationis played-time seconds the exclusion lasts. Neither tally is reset when a tier fires, so a player who keeps playing once an exclusion lifts escalates straight to the next tier rather than restarting. - Sharedcityrp.pcasino.BoundPrizeItemsSource ☍
-
Item uniqueIDs that receive hidden tradable=false meta when granted by the casino. Already definition-locked prizes (M3, Ninja, Dragon's Breath, Golden Vape) are omitted. Trabbi is intentionally left tradable as the joke prize.
- Servercityrp.pcasino.WarningTiersSource ☍
-
Ascending tiers that trigger an in-game reminder only, once per tier per session. A tier is reached when either tally passes its own threshold. The loss side is floored well above a single top-tier spin (advanced_high stakes $25,000) so one unlucky bet never reads as a loss pattern: tier 1 needs 4 full losses back to back. The wagered side is set at 20x the matching loss tier: roughly where an average-luck player at the published 95% RTP would be down the loss figure.
- Clientcityrp.pcasinoSource ☍
- Servercityrp.pcasino.SessionExcludedTierSource ☍
-
[SteamID64] = index into AutoExcludeTiers already applied.
- Servercityrp.pcasino.SessionNetSource ☍
-
[SteamID64] = net cash position at the casino this sitting (negative while down).
- Servercityrp.pcasino.SessionWageredSource ☍
-
[SteamID64] = total cash staked at the casino this sitting.
- Servercityrp.pcasino.SessionWarnedTierSource ☍
-
[SteamID64] = index into WarningTiers already notified for.