DarkRP.PlayerSoldDoor

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 a player has sold a door
Syntax
GAMEMODE:PlayerSoldDoor(Player ply, Entity ent)
Returnsnil

Arguments

  • ply (Player)
  • The player who sold the door

  • ent (Entity)
  • The sold door

    Examples

    Descriptionprints players who sell doors
    Code
    hook.Add( "PlayerSoldDoor", "example", function(ply, ent)
    	print(ply:Nick() .. " sold door " .. ent:EntIndex())
    end)
    Outputa print message