DarkRP.PlayerWarranted
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 get a search warrant |
---|---|
Syntax |
GAMEMODE:PlayerWarranted(Player ply, Player target, string reason)
|
Returns | nil |
Arguments
The player who gave the warrant status
The player that got warrant
The reason for the warrant
Examples[edit]
Description | logs warrant reasons |
---|---|
Code | hook.Add( "PlayerWarranted", "warrant", function(ply, target, reason)
ply:ChatPrint(ply:Nick() .. " got a warrant for " .. target:Nick())
print("Wanted reason: ", reason)
end)
|
Output | A print message |