DarkRP.PlayerUnarrested

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 unarrested
Syntax
GAMEMODE:PlayerUnarrested(Player ply)
Returnsnil

Arguments

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

    Examples[edit]

    DescriptionSend a message on unarrest
    Code
    hook.Add( "PlayerUnarrested", "Freedom", function(ply)
    	ply:ChatPrint("YOU'RE FREE")
    end)
    
    OutputUnarrested players get a message