Jump to content

How can I add and remove an item from a player without a message.


Recommended Posts

Posted

When using AddItem and RemoveItem, set the abSilent parameter to true rather than the default value of false.

 

Examples:

PlayerRef.RemoveItem(TheItem,num,true,TheCont)  ;from player to container
TheCont.RemoveItem(TheItem,num,true,PlayerRef)  ;from container to player
PlayerRef.AddItem(TheItem,num,true)  ;add new object instance to player
Posted

 

When using AddItem and RemoveItem, set the abSilent parameter to true rather than the default value of false.

 

Examples:

PlayerRef.RemoveItem(TheItem,num,true,TheCont)  ;from player to container
TheCont.RemoveItem(TheItem,num,true,PlayerRef)  ;from container to player
PlayerRef.AddItem(TheItem,num,true)  ;add new object instance to player

Excellent, thank you.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...