Skip to content

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.

TakePlayerCarryItem(pid)
Parameter Type
pid number the carrier

boolean - true when something was taken

-- the delivery is done: the sack goes, the pay comes
if GetPlayerCarryItem(pid) and TakePlayerCarryItem(pid) then GivePlayerMoney(pid, 5) end

DropPlayerCarryItem · GivePlayerCarryItem · the Carry items group of the index