xPlayer.getLoadout¶
1 | |
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 | 数据类型 | 说明 |
|---|---|---|
| name | string | Weapon name |
| ammo | number | Weapon ammo |
| label | string | Weapon label |
| components | table | Weapon component(s) |
xPlayer.getLoadout 示例¶
1 2 3 | |