Jump to content

valdirdd

Members
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by valdirdd

  1. valdirdd

    ERRO

    Você precisa ter o jogo original na Social Club ou Steam pra jogar, aproveita que tá de oferta na Steam até dia 5 GTA V Steam 67% de desconto
  2. Version 1.0.0

    3868 downloads

    Easy way to create blips: create, teleport to blip and delete. The blips are loaded on script load. Install: Copy files to your server-files and don't forget to edit index.js in client_packages if you have more resources. Commands: /blipc or /blipcreator - Enable and disable creator mod /blipd or /blipdelete - Open menu with blips to teleport or delete Keys: ' (single quotation marks) - Open and close creator menu. (Only works if creator mod is enabled) 1 (number one) - Create blip in your position with the config pre-binded (Only works if you bind) 2 (number two) - Create blip in your position with the config pre-binded (Only works if you bind) The blips are saved in json file. if you want change the directory go to (packages/BlipCreator/index.js) and change const SAVE_FILE = './blips.json'; Anyone can create and delete blips, if you have permission system or whatever, put your verifications in the commands: function blipCreator(player) and function delBlips(player) and also in events mp.events.add("delBlip", (player, id) => and mp.events.add("blipCreate", (player, data) => in file (packages/BlipCreator/index.js) Did you see a grammar error please coment thks
  3. Version 1.0.0

    3864 downloads

    Design by @CommanderDonkey, link here. For install just copy files to your server. Don't forget edit index.js into client_packages if you have more resources.
  4. function(player,position){ player ? This is a client script ? For client you don't have player as pattern And make sure that you using call arguments in array. See this exemple: /* ServerSide Script*/ let someColShape = mp.colshapes.newRectangle(0, 0, 100, 100); function playerEnterColshapeHandler(player, shape) { if(shape == someColShape) { console.log(`${player.name} entered the colshape`); //ZancudoBunker player.call("playerCreateWaypoint", [-3058.714, 3329.19, 12.5844]) /* I can only use numbers, string or boolean. If I need send object to client I have to convert in JSON format */ } } mp.events.add("playerEnterColshape", playerEnterColshapeHandler); /* ClientSide script*/ var player_location = null; mp.events.add("playerCreateWaypoint",function(x, y, z) { player_location = new mp.Vector3(x, y, z); mp.game.graphics.notify(`Press ~r~G ~w~if you want teleport to the waypoint.`); }); //Get keycode here -> http://keycode.info/ mp.keys.bind(71/*G*/, true, function() { if(player_location !== null) { mp.players.local.position = player_location; player_location = null; } }); https://wiki.rage.mp/index.php?title=Player::call
  5. You can use exports. /* File: database.js */ var mysql = require('mysql'); const connection = mysql.createConnection({ host: "localhost", user: "root", database: 'brv_ragemp', password: "" }); connection.connect(function(err) { if (err) throw err; console.log("Connected!"); }); module.exports.connection = connection; Other file /* File: index.js */ var db = require ("./database"); db.connection.query("SELECT * FROM contas", (err, row, fields)=> { console.info(row); }); More info: https://www.w3schools.com/nodejs/nodejs_modules.asp
  6. I've been thinking about CEF and Js/Css frameworks. Wich is batter, use less browsers as possible or I can create many browsers? More browsers with frameworks, more memory I use, right? If I have 3 browsers with Jquery I use the memory 3 times for Jquery.
  7. Nice, now working. Thanks
  8. valdirdd

    new board pt-br

    Acho que no momento ainda não é necessário, há poucos BR que conhecem o Rage. Na verdade o Rage no geral ainda é pouco conhecido, então ajude a comunidade crescer que garanto que os "develpers" vão criar a nossa board BR.
  9. When I use vehicle.rotation to get vehicle current rotation its return Vector3 with 0 in all. it's a bug ? how i get the rotation ? Sorry for my english, Isn't my native language
×
×
  • Create New...