Jump to content

Recommended Posts

Posted

 

vor 9 Stunden schrieb joew:

Just one question, please:

I'm trying to install scripts that i've to put inside: client_packages folder and i have to load then on the index.js.
But all the time I add the code to load my scripts in the index.js inside the same client_packages folder im loosing the changes. It looks like this index.js is backing to default's file, without accepts my changes.

Could you help me, please? Is it the right file to put the code? Why it's reset and undone my changes?

Thank you!!!!

Installation guide:

...

6. Modify files in app directory (if you need).

7. Do npm run build by cmd in main directory (BESURE DO THIS every time after some improvements in 'app' directory).

...

  • Like 1
Posted
Just now, Sevage said:

 

Installation guide:

...

6. Modify files in app directory (if you need).

7. Do npm run build by cmd in main directory (BESURE DO THIS every time after some improvements in 'app' directory).

...

Ty!!!

If the file index.js is inside client_packages, i've to add to app/client/index.js

Posted (edited)

Anyone can give a tip on how to get the vehicle fuel value (cVehicle.js - this.fuel.toFixed(1) - inside showFuel() function) on a script inside client_packages folder, please?

I tried a lot of ways, since today morning and can't get the value, always getting undefined =(
Thank you very much!!!!

Edited by joew
Posted

[2019-04-22T20:43:31.902] [WARN] default - 'SELECT * FROM vehicles WHERE factionName = 'Hospital'' ends with: 3.772s
[2019-04-22T20:43:31.903] [WARN] default - 'SELECT * FROM business INNER JOIN barbershop ON business.id = barbershop.id' ends with: 3.769s
[2019-04-22T20:43:31.903] [WARN] default - 'SELECT * FROM business INNER JOIN clothingshop ON business.id = clothingshop.id' ends with: 3.768s
[2019-04-22T20:43:31.904] [WARN] default - 'SELECT * FROM business INNER JOIN cheapcardealership ON business.id = cheapcardealership.id' ends with: 3.769s
[2019-04-22T20:43:31.934] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 3.798s
[2019-04-22T20:43:31.935] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 3.8s
{ Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials z10sm11429093wmi.15 - gsmtp
    at SMTPConnection._formatError (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:781:19)
    at SMTPConnection._actionAUTHComplete (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:1516:34)
    at SMTPConnection._responseActions.push.str (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:554:26)
    at SMTPConnection._processResponse (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:940:20)
    at SMTPConnection._onData (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:746:14)
    at TLSSocket.SMTPConnection._onSocketData (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:189:46)
    at TLSSocket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at TLSSocket.Readable.push (_stream_readable.js:219:10)
  code: 'EAUTH',
  response:
   '535-5.7.8 Username and Password not accepted. Learn more at\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials z10sm11429093wmi.15 - gsmtp',
  responseCode: 535,
  command: 'AUTH PLAIN' }

Posted
4 hours ago, EskaPe said:

[2019-04-22T20:43:31.902] [WARN] default - 'SELECT * FROM vehicles WHERE factionName = 'Hospital'' ends with: 3.772s
[2019-04-22T20:43:31.903] [WARN] default - 'SELECT * FROM business INNER JOIN barbershop ON business.id = barbershop.id' ends with: 3.769s
[2019-04-22T20:43:31.903] [WARN] default - 'SELECT * FROM business INNER JOIN clothingshop ON business.id = clothingshop.id' ends with: 3.768s
[2019-04-22T20:43:31.904] [WARN] default - 'SELECT * FROM business INNER JOIN cheapcardealership ON business.id = cheapcardealership.id' ends with: 3.769s
[2019-04-22T20:43:31.934] [WARN] default - 'SELECT * FROM business INNER JOIN gasstation ON business.id = gasstation.id' ends with: 3.798s
[2019-04-22T20:43:31.935] [WARN] default - 'SELECT * FROM business INNER JOIN commercialcardealership ON business.id = commercialcardealership.id' ends with: 3.8s
{ Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials z10sm11429093wmi.15 - gsmtp
    at SMTPConnection._formatError (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:781:19)
    at SMTPConnection._actionAUTHComplete (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:1516:34)
    at SMTPConnection._responseActions.push.str (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:554:26)
    at SMTPConnection._processResponse (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:940:20)
    at SMTPConnection._onData (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:746:14)
    at TLSSocket.SMTPConnection._onSocketData (C:\RAGEMP\server-files\node_modules\nodemailer\lib\smtp-connection\index.js:189:46)
    at TLSSocket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at TLSSocket.Readable.push (_stream_readable.js:219:10)
  code: 'EAUTH',
  response:
   '535-5.7.8 Username and Password not accepted. Learn more at\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials z10sm11429093wmi.15 - gsmtp',
  responseCode: 535,
  command: 'AUTH PLAIN' }

You need to log in on your gmail account, and Allow less secure apps to access it: https://devanswers.co/allow-less-secure-apps-access-gmail-account/

  • 3 weeks later...
Posted

[2019-05-12T23:01:51.895] [ERROR] default - UPDATE users SET ip = '178.68.102.28', logdate = '5/12/2019, 11:01:00 PM', position = '{"x":382.7,"y":6556.7,"z":27.4,"rot":333.7,"dim":0}', health = '100', loyality = '0' WHERE id = '1'
(node:2308) UnhandledPromiseRejectionWarning: Error: ER_LOCK_WAIT_TIMEOUT: Lock wait timeout exceeded; try restarting transaction
    at Query.Sequence._packetToError (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
    at Query.ErrorPacket (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\sequences\Query.js:77:18)
    at Protocol._parsePacket (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Protocol.js:278:23)
    at Parser.write (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Parser.js:76:12)
    at Protocol.write (C:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Protocol.js:38:16)
    at Socket.<anonymous> (C:\RAGEMP\server-files\node_modules\mysql\lib\Connection.js:91:28)
    at Socket.<anonymous> (C:\RAGEMP\server-files\node_modules\mysql\lib\Connection.js:502:10)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    --------------------
    at Pool.query (C:\RAGEMP\server-files\node_modules\mysql\lib\Pool.js:199:23)
    at Promise (C:\RAGEMP\server-files\packages\RP\index.js:1:1304)
    at new Promise (<anonymous>)
    at Object.dbquery (C:\RAGEMP\server-files\packages\RP\index.js:1:1283)
    at Object.query (C:\RAGEMP\server-files\packages\RP\index.js:1:1425)
    at Object.e.saveBasicData (C:\RAGEMP\server-files\packages\RP\index.js:1:52111)
    at Object.saveAccount (C:\RAGEMP\server-files\packages\RP\index.js:1:50908)
    at Object.self (C:\RAGEMP\server-files\packages\RP\index.js:1:52996)
    at Object.fire (<anonymous>:721:8)
    at eval (eval at add (unknown source), <anonymous>:3:11)
(node:2308) 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: 9)

Error server

Posted

Could anyone help me install nativeui resources, please?

 

I tried this resource:

 

So what i did:

1)Open Basic Car turner zip and went to folder: client_packages
2) Extrected the 2 folders: CarTuner and nativeui to folder: app\client
3) Added to file app\client\index.js:

require("./nativeui");
require("./CarTuner");

4) Open Basic Car Turner zip again and went to folder: packages
5)  Extrected the folder: CarTuner to folder: app\server
6) Added to file app\server\index.js:

require('./CarTuner');

7) Open the folder: server-files on cmd and exec the command:

npm run build

8- Started Server, started client and joinned the server.
9) Press F8 in-game and nothing happens. Go to vehicle, press F8 and nothing again.

So i edited the file: app\client\CarTurner\index.js and add the line:

mp.game.graphics.notify('CAR TURNER');

below the line:

mp.keys.bind(0x77, true, () => {
  mp.game.graphics.notify('CAR TURNER');


So i noticed that the cmd is executed after pressed F8 key, but it don't shows up the NativeUI menu...

And its not working with all others resources with nativeui. I'm using this nativeui:

Version: nativeui_18w48a.zip


Please, help me ;)

Thank you!!!!

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