DarkRP.PlayerArrested

From DarkRP
Jump to navigation Jump to search
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of hooks.

Syntax[edit]

DescriptionCalled when someone is arrested
Syntax
GAMEMODE:PlayerArrested(Player ply)
Returnsnil

Arguments

  • ply (Player)
  • The player who has been arrested

    Examples[edit]

    DescriptionNo door messages at all
    Code
    hook.Add( "PlayerArrested", "LaughAt", function(ply)
    	ply:ChatPrint("HAHA YOU GOT ARRESTED")
    end)
    
    OutputArrested players get taunted