Inventory

Client events that are in some way related to the inventory aspects.

On inventory update

This event is triggered when a item is removed or added from the user.

AddEventHandler('__WOSA:INVENTORY_UPDATE', function(inv_data)

end)

On item use

This event is triggered when a user is using a inventory item through the main menu.

The item index name in the database, in the database it is represented as item_name.

AddEventHandler('__WOSA:ITEM_USE', function(itemName, itemDisplayName, itemDatabaseID, itemRemovedOnUse)

end)

On item add

This event is triggered when a user gets a item from the system.

he item index name in the database, in the database it is represented as item_name.

AddEventHandler('__WOSA:ITEM_ADD', function(itemName, itemDisplayName)

end)

On item give

This event is triggered when a user gives a item to another user.

The receiver server id of the player who received the item.

AddEventHandler('__WOSA:ITEM_GIVE', function(receiverPlayerID, itemName, itemDisplayName, itemDatabaseID)

end)

On item drop

This event is triggered when a item is dropped.

The item index name in the database, in the database it is represented as item_name.

AddEventHandler('__WOSA:ITEM_DROP', function(itemName, itemDisplayName, itemDatabaseID)

end)

On item pickup

This event is triggered when a user picks up a item another user has dropped.

The coords of the dropped item. Table are in .x, .y, .z form.

AddEventHandler('__WOSA:ITEM_PICKUP', function(coordsOfItem, itemName, itemDisplayName)

end)

Last updated

Was this helpful?