Jump to content

Recommended Posts

Posted
Quote

 

(node:31083) ExperimentalWarning: The ESM module loader is experimental.
Loading maps:
        ""orangetrees.json"" loaded
        ""fences.xml.json"" loaded
        ""prison.json"" loaded
        ""police.json"" loaded
[M] Announcing into master server...
Loading packages
        "RP" loaded
[M] Connected to master list.
[2019-05-16T18:10:17.438] [FATAL] default - Server Started
[P] Plugin bridge.so loaded!
Started HTTP server at 30151 port.
DATABASE IS WORKING
EMAIL SERVER READY!
[N] 109.88.144.237:11330 has been disconnected.
(node:31083) [DEP0106] DeprecationWarning: crypto.createCipher is deprecated.
(node:31083) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'name' of undefined
    at Function.e.exports.loadUser (/home/ragemp-srv/packages/RP/index.js:1:46142)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:31083) 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: 1)
(node:31083) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:31083) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'hair' of undefined
    at Object.e.updateHeadOverlay (/home/ragemp-srv/packages/RP/index.js:1:34828)
    at process.internalTickCallback (internal/process/next_tick.js:77:7)
(node:31083) 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)
/home/ragemp-srv/packages/RP/index.js:1
(function (exports, require, module, __filename, __dirname) { !function(e){var t={};function n(i){if(t)return t.exports;var s=t={i:i,l:!1,exports:{}};return e.call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}([functio

TypeError: t.jailEvent is not a function
    at Object.everyMinuteEvent (/home/ragemp-srv/packages/RP/index.js:1:82867)
    at Object.changeTime (/home/ragemp-srv/packages/RP/index.js:1:83211)
    at Object.runTimer (/home/ragemp-srv/packages/RP/index.js:1:83018)
    at Timeout.timer.setTimeout [as _onTimeout] (/home/ragemp-srv/packages/RP/index.js:1:83093)
    at listOnTimeout (timers.js:324:15)
    at processTimers (timers.js:268:5)

 

This is the error I receive when I enter the server. I use linux

Posted

Hello dear GTA friends,

as far as I know it is possible to integrate other vehicles as well as other houses on the games map ...

Yesterday I tried to bring a vehicle and a new map that I edited with "CodeWalker" on my server ... But unfortunately he brings me with "npm run build" the error that he can not retrieve the map, because the entry is flawed...

Even if I download a mod from here and try to integrate it, it does not work ... In most mods I always have a "client_packages" as well as a "packages" folder ... If I understand it correctly, the content of "client_packages" comes in the folder "app / client" and the content of "packages" in the "app / server" folder .. Then I adjusted the respective index.js ... and then run "npm run build" ...

in the mods I have downloaded here ... Although I get no error "all green" ... but in the game, the functions are not there ...

But if I embed my card, and this synonymous in my "app/client/map"

and put it on the index.js calls, he says that probably does not work, because there is no index.js in the folder Map but only one dlc.rpf

maybe someone here is so nice and can help me with this problem further; (

What am I doing wrong?

 

I would be glad about an answer from you...

Greetings your Shooter

Posted

i added blip to code and its saying this 

Error: TypeError: mp.blip is not a function
    at Object.createBlippoints (E:\RAGEMP\server-files\packages\RP\index.js:1:101218)
    at new <anonymous> (E:\RAGEMP\server-files\packages\RP\index.js:1:100438)
    at Object.<anonymous> (E:\RAGEMP\server-files\packages\RP\index.js:1:98811)
    at n (E:\RAGEMP\server-files\packages\RP\index.js:1:172)
    at Object.<anonymous> (E:\RAGEMP\server-files\packages\RP\index.js:1:64356)
    at n (E:\RAGEMP\server-files\packages\RP\index.js:1:172)
    at E:\RAGEMP\server-files\packages\RP\index.js:1:964
    at Object.<anonymous> (E:\RAGEMP\server-files\packages\RP\index.js:1:974)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
[P] Plugin bridge.dll loaded!
Started HTTP server at 22006 port.
DATABASE IS WORKING
[2019-05-24T21:11:36.471] [WARN] default - 'SELECT * FROM business INNER JOIN cheapcardealership ON business.id = cheapcardealership.id' ends with: 0.764s
[2019-05-24T21:11:36.473] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 0.766s
[2019-05-24T21:11:36.474] [WARN] default - 'SELECT * FROM vehicles WHERE factionName = 'Hospital'' ends with: 0.774s
[2019-05-24T21:11:36.475] [WARN] default - 'SELECT * FROM business INNER JOIN barbershop ON business.id = barbershop.id' ends with: 0.77s
[2019-05-24T21:11:36.476] [WARN] default - 'SELECT * FROM business INNER JOIN clothingshop ON business.id = clothingshop.id' ends with: 0.77s
[2019-05-24T21:11:36.506] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 0.798s
EMAIL SERVER READY!

the code is in sOrangeCollector.cs


    createBlippoints() {
        for (let i = 0; i < this.checkPoints.length; i++) {
            const blip = mp.blip(387, new mp.Vector3(this.checkPoints[i].x, this.checkPoints[i].y, this.checkPoints[i].z),
                {
                    shortRange: true,
                    scale: 0.7,
                    color: 17,
                });

            blip.orangeCollectorTree = i;
            this.treeMarkersList.push(blip);
        }

    }

 

Posted

Can somebody help me with my problem 

(node:396) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'x' of null
    at new e.exports (C:\Users\Admin\Desktop\Neuer Ordner\server-files\packages\RP\index.js:1:67254)
    at Object.saveNewCar (C:\Users\Admin\Desktop\Neuer Ordner\server-files\packages\RP\index.js:1:40735)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:396) 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)

Posted

unknown.png

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?

Posted (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 by MarkCavalli
Posted

@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.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...