Skip to content

Commit cff385f

Browse files
authored
feat: moving clothing and prop keys to shared (#168)
1 parent 10b8f50 commit cff385f

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/main/server/player/clothing.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,11 @@
11
import * as alt from 'alt-server';
22
import { useCharacter } from '@Server/document/character.js';
33
import {Character, ClothingComponent} from '@Shared/types/index.js';
4+
import { ClothingKey, PropKey } from '@Shared/data/clothingKeys.js';
45

56
const fModel = alt.hash('mp_f_freemode_01');
67
const mModel = alt.hash(`mp_m_freemode_01`);
78

8-
const ClothingKey = {
9-
head: 0,
10-
mask: 1,
11-
torso: 3,
12-
legs: 4,
13-
bag: 5,
14-
shoes: 6,
15-
accessories: 7,
16-
undershirts: 8,
17-
bodyarmor: 9,
18-
decals: 10,
19-
tops: 11,
20-
};
21-
22-
const PropKey = {
23-
hat: 0,
24-
glasses: 1,
25-
ears: 2,
26-
watch: 6,
27-
bracelet: 7,
28-
};
29-
309
let femaleClothes = {
3110
0: 1, // mask
3211
3: 15, // torso
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export const ClothingKey = {
2+
head: 0,
3+
mask: 1,
4+
torso: 3,
5+
legs: 4,
6+
bag: 5,
7+
shoes: 6,
8+
accessories: 7,
9+
undershirts: 8,
10+
bodyarmor: 9,
11+
decals: 10,
12+
tops: 11
13+
};
14+
15+
export const PropKey = {
16+
hat: 0,
17+
glasses: 1,
18+
ears: 2,
19+
watch: 6,
20+
bracelet: 7
21+
};

0 commit comments

Comments
 (0)