DarkRP.PlayerSoldDoor

From DarkRP
Revision as of 18:07, 23 July 2020 by FPtje (talk | contribs) (1 revision imported: attempt import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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[edit]

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[edit]

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