Weapons: Difference between revisions
Jump to navigation
Jump to search
(Added Fist.png) |
m (Removed ugly underscore from "Death_Reasons") |
||
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 [[Death Reasons]]. | ||
*'''Name''' is compatible with functions [[getWeaponNameFromID]], [[getWeaponIDFromName]]. | *'''Name''' is compatible with functions [[getWeaponNameFromID]], [[getWeaponIDFromName]]. | ||
}} | }} |
Revision as of 13:02, 23 July 2016
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