GetPlayerArmorNames: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| Line 26: | Line 26: | ||
* Use these keys with <code>givePlayerItem</code> and <code>setPlayerArmor</code>. | * Use these keys with <code>givePlayerItem</code> and <code>setPlayerArmor</code>. | ||
[[Category:Lua Functions]] | |||
[[Category:Server Functions]] | [[Category:Server Functions]] | ||
[[Category:Inventory Functions]] | [[Category:Inventory Functions]] | ||
[[Category:Equipment Functions]] | [[Category:Equipment Functions]] | ||
Latest revision as of 09:52, 15 August 2026
getPlayerArmorNames
Returns the stable keys of every armor currently exposed by the server catalog.
Syntax
table getPlayerArmorNames()
Parameters
This function does not accept parameters.
Returns
Returns an array of armor key strings.
Examples
List all available armor keys:
for _, armorKey in ipairs(getPlayerArmorNames()) do
outputDebugString(armorKey)
end
Notes
- Available only in server-side resource scripts.
- Use these keys with
givePlayerItemandsetPlayerArmor.