Jump to content

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


agerweb

Recommended Posts

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
Link to comment
Share on other sites

  On 1/5/2023 at 4:28 AM, IsharaMeradin said:

 

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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