• 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!

Lua Spawn box with item inside

skywalker16

New Member
Joined
Nov 5, 2008
Messages
250
Reaction score
1
Location
Switzerland
I created this script and tried several diffrent things, which all did not work. I only found scripts which add bp to players and then items in the bp but not any for a item inside a created box on the map.

Thats my script:
for i = 1, #spawn_item_position do
local box_id = 1738
doCreateItem(box_id, spawn_item_position)
doAddContainerItem(getThingFromPos(spawn_item_position), (spawn_item_id[1]))


Anyone got an idea?
 
Last edited:
Back
Top