I mean, wtf is happening
top_inventory_item_hash = {}
local function CreateitemGrid( xposition )
LocalPlayer().TopInventoryLimit = 10
if top_inventory_item_hash[LocalPlayer().TopInventoryLimit] != nil then
if top_inventory_item_hash[LocalPlayer().TopInventoryLimit].ID == #top_inventory_item_hash then
stop_rendering_item_hashes = true
return
end
end
top_inventory_item_hash[#top_inventory_item_hash + 1] = vgui.Create( "DModelPanel" )
top_inventory_item_hash[#top_inventory_item_hash]:SetModel( "models/player/kleiner.mdl" )
top_inventory_item_hash[#top_inventory_item_hash]:SetSize( xsize( 50 ), ysize( 50 ) )
top_inventory_item_hash[#top_inventory_item_hash]:SetPos( xpos( xposition ), ypos( 30 ) )
top_inventory_item_hash[#top_inventory_item_hash].ID = #top_inventory_item_hash
function top_inventory_item_hash[#top_inventory_item_hash]:LayoutEntity( ent ) return end //THIS GIVES THIS ERROR
end
[ERROR] gamemodes/pirates/gamemode/hud/cl_hud.lua:107: ‘(’ expected near ‘[’
- unknown - gamemodes/pirates/gamemode/hud/cl_hud.lua:0