CityRP Documentation Repository

core.plugins.holdem.sv.sv_net

Holdem networking: sync, actions, cards, chips.

Functions

Serverholdem.broadcastDeal(id, dealType, ply)Source ☍

Broadcast deal animation cue.

Parameters

  • idnumber
  • dealTypenumber
  • plyPlayer|nilThe player metatable, with CityRP's own additions to Garry's Mod's Player.
Serverholdem.message(target, msg)Source ☍

Send a chat-style message to nearby players or a specific player.

Parameters

  • targetnumber|Playergame id or player
  • msgstring
Serverholdem.sendAction(ply, id, action, data)Source ☍

Prompt a seated player with a UI action.

Parameters

  • plyPlayer
  • idnumber
  • actionnumber
  • datatable|nil
Serverholdem.sendHoleCards(id, ply, recipients)Source ☍

Broadcast hole cards for a player (private or public reveal).

Parameters

Serverholdem.sync(recipients, id, noDeal)Source ☍

Sync public game state to one or more players.

Parameters

  • recipientsPlayer|Player[]The player metatable, with CityRP's own additions to Garry's Mod's Player.
  • idnumber
  • noDealboolean|nil
Serverholdem.syncChips(id)Source ☍

Sync pot chip visuals.

Parameters

  • idnumber
Serverholdem.syncMyGame(ply, id)Source ☍

Tell a client which game they are seated in (0 = none).

Parameters