DarkRP.PlayerUnWarranted
Jump to navigation
Jump to search
ply (Player)
target (Player)
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]
Description | Called when the cops remove a search warrant |
---|---|
Syntax |
GAMEMODE:PlayerUnWarranted(Player ply, Player target)
|
Returns | nil |
Arguments
The player who removed the warrant status
The player that got their warrant removed
Examples[edit]
Description | logs unwarrant |
---|---|
Code | hook.Add( "PlayerUnWarranted", "unwarrant", function(ply, target)
ply:ChatPrint(ply:Nick() .. " got a warrant for " .. target:Nick())
end)
|
Output | A print message |