You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/src/pages/reference/ID_Lists/Damage_Types.astro
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ luaTable += `}`;
42
42
<p>The following damage types are used by events like <ahref="/reference/onPlayerDamage">onPlayerDamage</a> or <ahref="/reference/onPlayerWasted">onPlayerWasted</a> for the weapon argument to describe the reason, why a ped has been damaged or died.</p>
43
43
44
44
<p>When a player was shot by a weapon, the respective weapon ID is the damage type ID. The weapon IDs can be found <ahref="/reference/ID_Lists/Weapons">here</a>.</p>
<p>To spawn custom variants is to implicitly specify which variants you want in <ahref="/reference/createVehicle">createVehicle</a>, or change the variant of an already existing vehicle using <ahref="/reference/setVehicleVariant">setVehicleVariant</a>. Also, any invalid variant will show up as the default model with no variation.</p>
<p>Scripting functions that ask for a <strong>Weapon ID</strong> need an integer that refers to the GTASA weapon ID list. They are listed below. Each weapon corresponds to an object model in-game.</p>
28
+
29
+
<NoteBoxtype='info'>Weapon <strong>Name</strong> is compatible with functions <ahref="/reference/getWeaponNameFromID">getWeaponNameFromID</a> and <ahref="/reference/getWeaponIDFromName">getWeaponIDFromName</a>.</NoteBox>
30
+
<NoteBoxtype='info'><strong>Bullet Sync</strong> refers to whether they are triggered by the <ahref="/reference/onPlayerWeaponFire">onPlayerWeaponFire</a> event.</NoteBox>
31
+
<NoteBoxtype='info'>For death reasons, especially in event handlers for <ahref="/reference/onPlayerWasted">onPlayerWasted</a> or similar, also have a look at the <ahref="/reference/ID_Lists/Damage_Types">Damage Types</a>.</NoteBox>
32
+
<NoteBoxtype='info'>GTASA <ahref="/reference/ID_Lists/Weapon_skill_levels">Weapon Stats</a> will affect movement, accuracy, damage, and dual wield capability. See <ahref="/reference/setPedStat">setPedStat</a> 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.</NoteBox>
33
+
<NoteBoxtype='info'>Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons.</NoteBox>
0 commit comments