Weapons: Difference between revisions
Jump to navigation
Jump to search
m (Reverted edits by Marcin778 (talk) to last revision by AlexTMjugador) |
m (Death Reasons -> Damage Types) |
||
Line 3: | Line 3: | ||
*Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons. | *Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons. | ||
*GTASA [[Weapon_skill_levels|weapon stats]] will affect movement, accuracy, damage, and dual wield capability. See [[setPedStat]] to change these stats. The default MTA server package comes with a resource called "defaultStats" that sets GTASA weapon stats to 999. See the weapon stats link for more info. | *GTASA [[Weapon_skill_levels|weapon stats]] will affect movement, accuracy, damage, and dual wield capability. See [[setPedStat]] to change these stats. The default MTA server package comes with a resource called "defaultStats" that sets GTASA weapon stats to 999. See the weapon stats link for more info. | ||
*For death reasons, especially in event handlers for onPlayerWasted or similar, also have a look at the [[ | *For death reasons, especially in event handlers for onPlayerWasted or similar, also have a look at the [[Damage Types]]. | ||
*'''Name''' is compatible with functions [[getWeaponNameFromID]], [[getWeaponIDFromName]]. | *'''Name''' is compatible with functions [[getWeaponNameFromID]], [[getWeaponIDFromName]]. | ||
}} | }} |
Revision as of 15:22, 17 January 2017
Scripting functions that ask for a weapon ID need an integer that refers to the GTASA weapon ID list. They are listed below.
Client Functions
- Shared
- getWeaponProperty
- getPickupWeapon
- getOriginalWeaponProperty
- getSlotFromWeapon
- getWeaponIDFromName
- getWeaponNameFromID
- setWeaponAmmo
- setWeaponProperty