Skip to content

Commit 78e81a4

Browse files
committed
Weapons ID List page improvements
1 parent f88c3ec commit 78e81a4

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

web/src/pages/reference/ID_Lists/Weapons.astro

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ import { weapons } from '@src/data/weapons';
2121
}}>
2222
<p>Scripting functions that ask for a <strong>Weapon ID</strong> need an integer that refers to the GTASA weapon ID list, defined below. Each weapon is represented by an object that is identified by its model ID.</p>
2323

24-
<NoteBox type='info'>Weapon <strong>Name</strong> is compatible with functions <a href="/reference/getWeaponNameFromID">getWeaponNameFromID</a> and <a href="/reference/getWeaponIDFromName">getWeaponIDFromName</a>.</NoteBox>
25-
<NoteBox type='info'><strong>Bullet Sync</strong> refers to whether they are triggered by the <a href="/reference/onPlayerWeaponFire">onPlayerWeaponFire</a> event.</NoteBox>
26-
<NoteBox type='info'>For death reasons, especially in event handlers for <a href="/reference/onPlayerWasted">onPlayerWasted</a> or similar, also have a look at the <a href="/reference/ID_Lists/Damage_Types">Damage Types</a>.</NoteBox>
27-
<NoteBox type='info'>GTASA <a href="/reference/ID_Lists/Weapon_skill_levels">Weapon Stats</a> will affect movement, accuracy, damage, and dual wield capability. See <a href="/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>
28-
<NoteBox type='info'>Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons.</NoteBox>
24+
<NoteBox type='info'>
25+
- Weapon <strong>Name</strong> is compatible with functions <a href="/reference/getWeaponNameFromID">getWeaponNameFromID</a> and <a href="/reference/getWeaponIDFromName">getWeaponIDFromName</a>.<br/>
26+
- <strong>Bullet Sync</strong> refers to whether they are triggered by the <a href="/reference/onPlayerWeaponFire">onPlayerWeaponFire</a> event.<br/>
27+
- For death reasons, especially in event handlers for <a href="/reference/onPlayerWasted">onPlayerWasted</a> or similar, also have a look at the <a href="/reference/ID_Lists/Damage_Types">Damage Types</a>.<br/>
28+
- GTASA <a href="/reference/ID_Lists/Weapon_skill_levels">Weapon Stats</a> will affect movement, accuracy, damage, and dual wield capability. See <a href="/reference/setPedStat">setPedStat</a> to change these stats. The default MTA server package comes with a resource called <b>defaultStats</b> that sets GTASA weapon stats to 999. See the weapon stats link for more info.<br/>
29+
- Clip size () denotes clip size when the weapon is dual wielded. Weapons without this specification are not dual wield weapons.
30+
</NoteBox>
2931

3032
<table class="weapon-table">
3133
<thead>
@@ -103,12 +105,19 @@ local weaponIDsBySlot = {
103105
overflow-x: auto;
104106
white-space: nowrap;
105107
}
108+
.weapon-table td {
109+
text-align: center;
110+
vertical-align: middle !important;
111+
}
106112
.weapon-image-container {
107-
background-color: rgba(255, 255, 255, 1);
113+
background-color: var(--sl-color-gray-5);
108114
border-radius: 6px;
109115
padding: 6px;
110116
margin: 0 auto;
111117
}
118+
:root[data-theme='dark'] .weapon-image-container {
119+
background-color: var(--sl-color-gray-4);
120+
}
112121
.weapon-image {
113122
max-width: 50px;
114123
margin: 0 auto;

0 commit comments

Comments
 (0)