• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Cannot add containers inside containers.

elnelson

Lunaria World Dev
Joined
Jun 20, 2009
Messages
595
Solutions
2
Reaction score
66
Location
México
Hello ,otlanders. i had an idea, but i dont know how to script it, im trying to avoid players put containers (as backpacks, corpses) inside another container.

Im using TFS 0.4
 
First check the corpse uid - then make script like this
  1. local corpse_uid = doAddContainerItem(corpse.uid, new_container_item_id, 1)
  2. doAddContainerItem(corpse_uid, item_id, count)
 
Back
Top