xPlayer.getLoadout¶
1 | xPlayer.getLoadout() |
This function returns the player loadout.
Returned Table Content¶
The returned table contains an index-value table, and for each child there is a key-value table with the following content:
Child | Data Type | Explanation |
---|---|---|
name | string | Weapon name |
ammo | number | Weapon ammo |
label | string | Weapon label |
components | table | Weapon component(s) |
xPlayer.getLoadout Exemplo¶
1 2 3 | for k,v in ipairs(xPlayer.getLoadout()) do print(v.ammo) end |