Client
Client exports
Call from client-side scripts only (local player).
OpenPlayerPanel
Opens the player betting panel for the local player.
Parameters: none
Returns: nothing
exports['cdev_bet']:OpenPlayerPanel()Example key mapping
RegisterCommand('+openbet', function()
exports['cdev_bet']:OpenPlayerPanel()
end, false)
RegisterKeyMapping('+openbet', 'Open sportsbook', 'keyboard', 'F7')OpenAdminPanel
Opens the admin panel for the local player. Server still validates admin ACE when loading data.
Parameters: none
Returns: nothing
ClosePanel
Closes the betting UI for the local player.
Parameters: none
Returns: nothing
IsPanelOpen
Returns whether the local player has the betting panel open.
Parameters: none
Returns: boolean
Last updated