Skip to content

utils.weapon.getAll

utils.weapon.getAll()
This function gets the complete weapon list and label.

Dependency

local utils = M("utils")

Example

local list = utils.weapon.getAll()

for i=1, #list, 1 do
    print(list[i].name .. ' => ' .. list[i].label) -- Returns all weapons with name and label
end

Improve this documentation