Click or drag to resize

BasePlayer Events

The BasePlayer type exposes the following members.

Events
  NameDescription
Public eventCancelClickTextDraw
Occurs when the OnCancelClickTextDraw(PlayerEventArgs) is being called. This callback is called when a player cancels the textdraw select mode(ESC).
Public eventCleanup
Occurs when the OnCleanup(DisconnectEventArgs) is being called. This callback is called after a player disconnects from the server.
Public eventClickMap
Occurs when the OnClickMap(PositionEventArgs) is being called. This callback is called when a player places a target/waypoint on the pause menu map (by right-clicking).
Public eventClickPlayer
Occurs when the OnClickPlayer(ClickPlayerEventArgs) is being called. Called when a player double-clicks on a player on the scoreboard.
Public eventClickPlayerTextDraw
Occurs when the OnClickPlayerTextDraw(ClickPlayerTextDrawEventArgs) is being called. This callback is called when a player clicks on a player-textdraw. It is not called when player cancels the select mode (ESC).
Public eventClickTextDraw
Occurs when the OnClickTextDraw(ClickTextDrawEventArgs) is being called. This callback is called when a player clicks on a textdraw. It is not called when player cancels the select mode (ESC)
Public eventCommandText
Occurs when the OnCommandText(CommandTextEventArgs) is being called. This callback is called when a player enters a command into the client chat window, e.g. /help.
Public eventConnected
Occurs when the OnConnected(EventArgs) is being called. This callback is called when a player connects to the server.
Public eventDialogResponse
Occurs when the OnDialogResponse(DialogResponseEventArgs) is being called. This callback is called when a player responds to a dialog shown using Dialog by either clicking a button, pressing ENTER/ESC or double-clicking a list item (if using a list style dialog).
Public eventDied
Occurs when the OnDeath(DeathEventArgs) is being called. This callback is triggered when the gamemode starts.
Public eventDisconnected
Occurs when the OnDisconnected(DisconnectEventArgs) is being called. This callback is called when a player disconnects from the server.
Public eventDisposed
Occurs when this isntance has been disposed.
(Inherited from Disposable.)
Public eventEditAttachedObject
Occurs when the OnEditAttachedObject(EditAttachedObjectEventArgs) is being called. This callback is called when a player ends attached object edition mode.
Public eventEditGlobalObject
Occurs when the OnEditGlobalObject(EditGlobalObjectEventArgs) is being called. This callback is called when a player ends object edition mode.
Public eventEditPlayerObject
Occurs when the OnEditPlayerObject(EditPlayerObjectEventArgs) is being called. This callback is called when a player ends object edition mode.
Public eventEnterCheckpoint
Occurs when the OnEnterCheckpoint(EventArgs) is being called. This callback is called when a player enters the checkpoint set for that player.
Public eventEnterExitModShop
Occurs when the OnEnterExitModShop(EnterModShopEventArgs) is being called. This callback is called when a player enters or exits a mod shop.
Public eventEnterRaceCheckpoint
Occurs when the OnEnterRaceCheckpoint(EventArgs) is being called. This callback is called when a player enters a race checkpoint.
Public eventEnterVehicle
Occurs when the OnEnterVehicle(EnterVehicleEventArgs) is being called. This callback is called when a player starts to enter a vehicle, meaning the player is not in vehicle yet at the time this callback is called.
Public eventExitedMenu
Occurs when the OnExitedMenu(EventArgs) is being called. Called when a player exits a menu.
Public eventExitVehicle
Occurs when the OnExitVehicle(PlayerVehicleEventArgs) is being called. This callback is called when a player exits a vehicle.
Public eventGiveDamage
Occurs when the OnGiveDamage(DamageEventArgs) is being called. This callback is called when a player gives damage to another player.
Public eventInteriorChanged
Occurs when the OnInteriorChanged(InteriorChangedEventArgs) is being called. Called when a player changes interior.
Public eventKeyStateChanged
Occurs when the OnKeyStateChanged(KeyStateChangedEventArgs) is being called. This callback is called when the state of any supported key is changed (pressed/released). Directional keys do not trigger this callback.
Public eventLeaveCheckpoint
Occurs when the OnLeaveCheckpoint(EventArgs) is being called. This callback is called when a player leaves the checkpoint set for that player.
Public eventLeaveRaceCheckpoint
Occurs when the OnLeaveRaceCheckpoint(EventArgs) is being called. This callback is called when a player leaves the race checkpoint.
Public eventPickUpPickup
Occurs when the OnPickUpPickup(PickUpPickupEventArgs) is being called. This callback is called when a player picks up a pickup.
Public eventRequestClass
Occurs when the OnRequestClass(RequestClassEventArgs) is being called. Called when a player changes class at class selection (and when class selection first appears).
Public eventRequestSpawn
Occurs when the OnRequestSpawn(RequestSpawnEventArgs) is being called. Called when a player attempts to spawn via class selection.
Public eventSelectedMenuRow
Occurs when the OnSelectedMenuRow(MenuRowEventArgs) is being called. This callback is called when a player selects an item from a menu.
Public eventSelectGlobalObject
Occurs when the OnSelectGlobalObject(SelectGlobalObjectEventArgs) is being called. This callback is called when a player selects an object after Select(BasePlayer) has been used.
Public eventSelectPlayerObject
Occurs when the OnSelectPlayerObject(SelectPlayerObjectEventArgs) is being called. This callback is called when a player selects an object after Select(BasePlayer) has been used.
Public eventSpawned
Occurs when the OnSpawned(SpawnEventArgs) is being called. This callback is called when a player spawns.
Public eventStateChanged
Occurs when the OnStateChanged(StateEventArgs) is being called. This callback is called when a player exits a vehicle.
Public eventStreamIn
Occurs when the OnStreamIn(PlayerEventArgs) is being called. This callback is called when a player is streamed by some other player's client.
Public eventStreamOut
Occurs when the OnStreamOut(PlayerEventArgs) is being called. This callback is called when a player is streamed out from some other player's client.
Public eventTakeDamage
Occurs when the OnTakeDamage(DamageEventArgs) is being called. This callback is called when a player takes damage.
Public eventText
Occurs when the OnText(TextEventArgs) is being called. Called when a player sends a chat message.
Public eventUpdate
Occurs when the OnUpdate(PlayerUpdateEventArgs) is being called. This callback is called everytime a client/player updates the server with their status.
Public eventWeaponShot
Occurs when the OnWeaponShot(WeaponShotEventArgs) is being called. This callback is called when a player fires a shot from a weapon.
Top
See Also