Дизайн взят с ragemp.pro
Автор дизайна: Keer (спасибо большое)
Разработка: discord: peach#5569
Перед запуском проекта вам нужно установить модули.
После установки модулей запустите проект.
Для того чтобы сбилдить проект.
('app', {type: 'setComponent', data: 'choicePlayer'})
('choicePlayer', {type: 'setData', data: obj})
Хранение данных
data= {
0: {
type: 'active',
id: 12521,
name: 'LEECOM PANY',
lvl: 1,
fraction: 'CityHall',
card: '2074991',
cash: '2074991',
condition: {
food: 50,
water: 50,
health: 50,
endurance: 50,
},
},
1: {
type: null, // Пустой слот
},
2: {
type: 'donate', // Донатный слот
},
}
('choicePlayer', {type: 'changePlayer', data: obj})
Хранение данных
data = {
slot: 0, // 0, 1, 2
data: {
type: null;
...
}
}
('choicePlayer', 'selectPlayer', {"slot":"0","id":12521})
('choicePlayer', 'deletePlayer', {"slot":"0","id":12521})
('choicePlayer', 'createPlayer', {"slot":"1"})
('choicePlayer', 'selectDonateSlot', {"slot":"2"})