DarkRP.PlayerSoldDoor
Jump to navigation
Jump to search
ply (Player)
ent (Entity)
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 a player has sold a door |
---|---|
Syntax |
GAMEMODE:PlayerSoldDoor(Player ply, Entity ent)
|
Returns | nil |
Arguments
The player who sold the door
The sold door
Examples[edit]
Description | prints players who sell doors |
---|---|
Code | hook.Add( "PlayerSoldDoor", "example", function(ply, ent)
print(ply:Nick() .. " sold door " .. ent:EntIndex())
end)
|
Output | a print message |