mp.events.addCommand('kill', (player) => {
player.health = 0;
});
mp.events.addCommand('hp', (player) => {
player.health = 100;
});
mp.events.addCommand('armor', (player) => {
player.armour = 100;
});
//Cоздание машины по ее имени
mp.events.addCommand('veh', (player, _, models) => {
if (models === undefined) return player.outputChatBox('/veh [model]');
let tpos;
tpos = player.position;
mp.vehicles.new(mp.joaat(models), new mp.Vector3(tpos.x + 2, tpos.y, tpos.z));
});
mp.events.addCommand('hello', (player) => {
player.outputChatBox('Hello, Player!');
});