TakePlayerCarryItem
Takes away what a player carries, for good.
The item leaves his hands on every screen and is removed from the world (the same as DestroyEntity on it). No
OnPlayerPutDownCarryItem follows. false when he carries nothing.
Syntax
Section titled “Syntax”TakePlayerCarryItem(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the carrier |
Returns
Section titled “Returns”boolean - true when something was taken
Example
Section titled “Example”-- the delivery is done: the sack goes, the pay comesif GetPlayerCarryItem(pid) and TakePlayerCarryItem(pid) then GivePlayerMoney(pid, 5) endSee also
Section titled “See also”DropPlayerCarryItem · GivePlayerCarryItem · the Carry items group of the index
