DarkRP.PlayerUnWarranted

From Official DarkRP Wiki
Jump to: navigation, 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

DescriptionCalled when the cops remove a search warrant
Syntax
GAMEMODE:PlayerUnWarranted(Player ply, Player target)
Returnsnil

Arguments

  • ply (Player)
  • The player who removed the warrant status

  • target (Player)
  • The player that got their warrant removed

    Examples

    Descriptionlogs unwarrant
    Code
    hook.Add( "PlayerUnWarranted", "unwarrant", function(ply, target)
    	ply:ChatPrint(ply:Nick() .. " got a warrant for " .. target:Nick())
    end)
    OutputA print message