Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/04/18 in all areas

  1. Доброго времени суток! Ищу самый простой способ реализации окон регистрации и авторизации с учетом актуальной версии клиента. Поделитесь, пожалуйста, ссылкой на урок/мод (с данной реализацией)
    1 point
  2. That should work... // Connection file var mysql = require('mysql'); module.exports = { Handle: null, Connect: function(callback) { this.Handle = mysql.createConnection({ host : 'your_host', user : 'your_user', password : 'your_pass', database : 'your_database' }); this.Handle.connect(function(e) { if ( !e ) { callback(); } else console.log ("Error in Database " + e); }); } }; // White list file var db = require("./database"); mp.events.add("playerJoin", (player) => { db.Handle.query("SELECT * FROM whitelist WHERE socialID = ?", [player.socialClub], function(e, result) { if (!result.length){ player.kick("Not in whitelist."); }else{ // In Whitelist :) } }); But instead of using the social club, I recommend creating a login with a unique user ID. Players with pirate gta do not have the socialClub! Sorry for my English, I'm Brazilian.
    1 point
  3. Greetings Ladies and Gentlemen, If you are currently looking for support for either Client or Server issues, please head over to the Support Section of our forums. Any threads for support posted within the Discussion section will be moved to the proper area and the user whom posted it will be warned. Thanks for your time!
    1 point
  4. Oh package.json wasn't there before that's why. I see he's added it back now so either do what he said or pull the repo again and try it.
    1 point
  5. Update? What for? That's how it works on GTAV, nothing to do with this mod.
    1 point
×
×
  • Create New...