MarkCavalli 101 Posted May 30 (edited) 2 часа назад, Zow сказал: Whats this message mean? After I re-install windows and setup everything like before nodejs xampp and this happens to me Any idea to fix? seems all ok, but you can update outdated packages Edited May 30 by MarkCavalli Share this post Link to post Share on other sites
joew 7 Posted May 31 @MarkCavalli I added the option to open convertible roof, if u want to add to your project: - sVehicleSingletone.js mp.events.add({ ... "sKeys-Num8": (player) => { if (!player.loggedIn || !player.vehicle) return; player.vehicle.raiseConvertibleRoof(player); }, ... }); - sVehicle.js ... constructor (d) { ... vehicle.raiseConvertibleRoof = function (player) { mp.players.forEach((p, id) => { p.call("cVehicle-raiseConvertibleRoof", [this]); }); } ... } - cVehicle.js ... constructor() { ... mp.events.add({ ... "cVehicle-raiseConvertibleRoof": (vehicle) => { let roofState = vehicle.getConvertibleRoofState(); if (roofState === 0) { vehicle.lowerConvertibleRoof(false); } else if (roofState === 2) { vehicle.raiseConvertibleRoof(false); } else { mp.gui.chat.push("Already using Convertible Roof. Try again later."); } }, ... }); } ... - Menu.html ... <script type="text/x-template" id="tab-help"> <section class="info tab-vehicles"> <div class="veh-list"> <a class="veh-item" v-for="(item, i) in d.i18n.help" @click="currentTab = i" :class="[{ active: currentTab === i }]"> <span>{{ item }}</span> </a> </div> <div class="veh-info"> <div class="gps" v-if="currentTab === 0"> <p class="help-p">{{ d.i18n.helpStart1 }}</p> <p class="help-p">{{ d.i18n.helpStart2 }}</p> </div> <div class="gps" v-if="currentTab === 1"> <div class="veh-info_props"> ... <div class="veh-info_prop"> <img src="img/reardoor.png"> <span>Num 8</span> <div>{{ d.i18n.convertibleroof }}</div> </div> ... </div> </div> </div> </section> </script> ... const app = new Vue({ el: '#app', data: { pName: '', currentTab: 0, d: { ... i18n: { ... rear: 'rear', windows: 'windows', convertibleroof: 'Convertible Roof', settings: ["Basic"], Change: 'Change', ... }, ... }, }, }, ... function loadRusLang() { // Do it to all languages. app.d.i18n = { ... convertibleroof: 'Convertible Roof', ... } } It's recommended change the image icon reardoor.png to one that really represents convertible roof. (I'm looking for one too, if someone have one and would like to share would be very helpful) I got the same eg as windows, so i think its all right and its synced. 1 Share this post Link to post Share on other sites
Maloodx 0 Posted May 31 Hi, when i spawn a vehicles : "TypeError: Cannot read property 'setLights' of null" and no vehicles spawn Share this post Link to post Share on other sites
lilJB 0 Posted May 31 I have an error when I buy a vehicle in the cheap vehicle store: (node:59628) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'x' of null at new e.exports (D:\RageMP\server-files\packages\RP\index.js:1:67229) at Object.saveNewCar (D:\RageMP\server-files\packages\RP\index.js:1:40708) at process._tickCallback (internal/process/next_tick.js:68:7) (node:59628) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) Share this post Link to post Share on other sites
2TT 0 Posted June 1 В 31.05.2019 в 10:54, Maloodx сказал: Hi, when i spawn a vehicles : "TypeError: Cannot read property 'setLights' of null" and no vehicles spawn Show the command, which cause the car. Share this post Link to post Share on other sites
poirock055 0 Posted June 1 Very nice open source. Thanks Share this post Link to post Share on other sites
justin4game 0 Posted June 2 (edited) Erledigt Edited October 12 by justin4game Tja Share this post Link to post Share on other sites
Aguiar 0 Posted June 3 Someone could help me? server crash 1 minute after I do the login inside the server. I did the download of the project today again and when I start the server I got some warnings, but i don't think it a problem because I already fix it and the server continue crashing I can't see what is the last message show before crashing because is too fast, but I see something with async. Database is OK. https://ibb.co/WcGT2gj Share this post Link to post Share on other sites
MarkCavalli 101 Posted June 3 (edited) 8 часов назад, Aguiar сказал: Someone could help me? server crash 1 minute after I do the login inside the server. I did the download of the project today again and when I start the server I got some warnings, but i don't think it a problem because I already fix it and the server continue crashing I can't see what is the last message show before crashing because is too fast, but I see something with async. Database is OK. Check sTime file. Also you can use npm run watch for debug Edited June 3 by MarkCavalli Share this post Link to post Share on other sites
Pablin_Rodriguez 0 Posted June 3 (edited) [2019-06-03T20:37:07.179] [FATAL] default - Server Started [2019-06-03T20:37:12.132] [ERROR] default - SELECT * FROM vehicles WHERE factionName = 'Hospital' [2019-06-03T20:37:12.135] [ERROR] default - SELECT * FROM business INNER JOIN barbershop ON business.id = barbershop.id [2019-06-03T20:37:12.138] [ERROR] default - SELECT * FROM business INNER JOIN clothingshop ON business.id = clothingshop.id [2019-06-03T20:37:12.140] [ERROR] default - SELECT * FROM business INNER JOIN cheapcardealership ON business.id = cheapcardealership.id [2019-06-03T20:37:12.145] [ERROR] default - SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id [2019-06-03T20:37:12.148] [ERROR] default - SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id I need help ! Pls Edited June 4 by Pablin_Rodriguez Share this post Link to post Share on other sites