DarkRP.PlayerWanted
Jump to navigation
Jump to search
ply (Player)
target (Player)
reason (string)
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 someone is not wanted anymore (by someone else) |
---|---|
Syntax |
GAMEMODE:PlayerWanted(Player ply, Player target, string reason)
|
Returns | nil |
Arguments
The player who gave the wanted status
The player that got wanted
The reason for the wanted
Examples[edit]
Description | logs wanted reasons |
---|---|
Code | hook.Add( "PlayerWanted", "wanted", function(ply, target, reason)
ply:ChatPrint(ply:Nick() .. " wanted " .. target:Nick())
print("Wanted reason: ", reason)
end)
|
Output | A print message |