DarkRP.PlayerSoldDoor

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.

SyntaxEdit

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

    ExamplesEdit

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