Weapons: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 135: | Line 135: | ||
| rowspan="1" | - | | rowspan="1" | - | ||
|} | |} | ||
Lua table of all weapons ID | |||
<syntaxhighlight lang="lua"> | |||
local weapons = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 22, 23, 24, 25, 26, 27, 28, 29, 32, 30, 31, 33, 34, 35, 36, 37, 38, 16, 17, 18, 39, 41, 42, 43, 10, 11, 12, 14, 15, 44, 45, 46, 40} | |||
</syntaxhighlight> | |||
==Client Functions== | ==Client Functions== |
Revision as of 00:14, 20 September 2021
Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.
Lua table of all weapons ID
local weapons = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 22, 23, 24, 25, 26, 27, 28, 29, 32, 30, 31, 33, 34, 35, 36, 37, 38, 16, 17, 18, 39, 41, 42, 43, 10, 11, 12, 14, 15, 44, 45, 46, 40}
Client Functions
- Shared
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty