Что нового
AutoPilot System Using Mongodb

JS AutoPilot System Using Mongodb 0.0.1

Autopilot​

System​

made with
mongodb

you can buy a

Autopilot​

System for every car you have !!!​

all you​

need​

when you spawn a car you have to do like this example:

vehicle.owner = player;
vehicle.modelName = model;

and for mongodb models it should be like this


const mongoose = require("mongoose");
const UserSchema = new mongoose.Schema({
firstname: { type: String, required: true },
lastname: { type: String, required: true },
email: { type: String, required: true, unique: true },
password: { type: String },
Admin: { type: String },
money: { type: Number, default: 15000 },
bank: { type: Number, default: 0 },
hp: { type: Number },

lastpos: {
x: Number,
y: Number,
z: Number,
},
playersettings: {
license: { type: Boolean, default: false },
lvl: { type: Number, default: 1 },
},
cars: [
{
model: { type: String, required: true },
plate: { type: String, },
color: { type: String, default: "white" },
fuel: { type: Number, default: 100 },
autopilot: { type: Boolean, default: false },
}
]
});
module.exports = mongoose.model("User", UserSchema);


discord: aburead


Автор
Mhmd Pluxury
Скачивания
0
Просмотры
160
Первый выпуск
Обновление
Рейтинг
0,00 звёзд Оценок: 0

Поделиться ресурсом

Назад
Верх