I just started to get into the whole Modding thing and i am stucl with this
Code: Select all
for i = 1, ent.request_slot_count do
local slotinfo = ent.get_request_slot(i)
message_all(slotinfo)
end
but i also need to grab the requested amount.
I tried to treat slotinfo like a table with a for loop in pais cause the documentation says (An item stack may be specified either as a string (in which case it represents a full stack containing the specified item), or as the following table:) but that is not working.
Can somebody help me and tell me how do i get the itemcount and name from that slot?
Thanks and greets Loki