PlayerSkill
GTA:SA’s skills, for players.setSkill. The game keeps no boat skill.
Renamed in 0.28 from Skill; see renamed names.
Definition
Section titled “Definition”const PlayerSkill = Object.freeze({ pistol: 0, silencedPistol: 1, desertEagle: 2, shotgun: 3, sawnoff: 4, combatShotgun: 5, machinePistol: 6 /* Uzi, Tec-9 */, mp5: 7, ak47: 8, m4: 9, rifle: 10 /* country rifle, sniper rifle */, stamina: 11, driving: 12, flying: 13, lungCapacity: 14, bike: 15, cycling: 16, gambling: 17,} as const);Values
Section titled “Values”| Name | Value | Skill |
|---|---|---|
PlayerSkill.pistol |
0 |
Pistol |
PlayerSkill.silencedPistol |
1 |
Silenced pistol |
PlayerSkill.desertEagle |
2 |
Desert Eagle |
PlayerSkill.shotgun |
3 |
Shotgun |
PlayerSkill.sawnoff |
4 |
Sawn-off shotgun |
PlayerSkill.combatShotgun |
5 |
Combat shotgun |
PlayerSkill.machinePistol |
6 |
Uzi and Tec-9 |
PlayerSkill.mp5 |
7 |
MP5 |
PlayerSkill.ak47 |
8 |
AK-47 |
PlayerSkill.m4 |
9 |
M4 |
PlayerSkill.rifle |
10 |
Country and sniper rifle |
PlayerSkill.stamina |
11 |
Stamina |
PlayerSkill.driving |
12 |
Driving |
PlayerSkill.flying |
13 |
Flying |
PlayerSkill.lungCapacity |
14 |
Lung capacity |
PlayerSkill.bike |
15 |
Motorbikes |
PlayerSkill.cycling |
16 |
Bicycles |
PlayerSkill.gambling |
17 |
Gambling |