DarkRP.PlayerUnWarranted

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 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[edit]

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