DarkRP.PlayerUnWanted

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 someone is not wanted anymore (by someone else)
Syntax
GAMEMODE:PlayerUnWanted(Player ply, Player ply)
Returnsnil

Arguments

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

  • ply (Player)
  • The player that was previously wanted

    Examples

    DescriptionThe person who unwanted someone gets a message
    Code
    hook.Add( "PlayerUnWanted", "Freedom", function(ply, target)
    	ply:ChatPrint("You unwanted " .. target:Nick())
    end)
    OutputA message