CityRP Documentation Repository

core.plugins.warning.sv_init

Serverside Warnings System

Functions

Serverwarnings_load(player)Source ☍

Function to load a player's warnings.

Parameters

  • playerPlayerThe player to load warnings for.
Serverwarnings_update(player, warnings)Source ☍

Function to update a player's warnings.

Parameters

  • playerPlayerThe player to update warnings for.
  • warningstable[]The new warnings table for the player.

Fields

ServermethodSource ☍