Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/25/19 in all areas

  1. Version 1.0.1

    2696 downloads

    Hey i made a simple Car Tuner for RageMP with NativeUI. You can open the menu with "F8". I have it on GitHub for you feel free to fork it: https://github.com/SupperCraft5000/Basic-Car-Tuner You can Tune not all Thins but the Basics.
    1 point
  2. Version 1.0.1

    2576 downloads

    Now you can lock or unlock doors and gates (from GTA V world). How to do that? Just press E. If you appreciate my work, you can press the like button. ❤️
    1 point
  3. Create file 'commandline.js' to dir 'packages/keker' with the following code: const readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); function ParseCmd(s){ var args = s.split(" "); var cmd = args[0].toLowerCase(); var res = ''; switch(cmd){ case "ban": mp.players.forEach(player => { if(player.name.toLowerCase() == args[1].toLowerCase()){ player.ban("Console"); res = " Player "+player.name+" was banned!!!"; } }); break; case "kick": mp.players.forEach(player => { if(player.name.toLowerCase() == args[1].toLowerCase()){ player.kick("Console"); res = " Player "+player.name+" was kicked!!!"; } }); break; case "tppos": if(args.length>4){ mp.players.forEach(player => { if(player.name.toLowerCase() == args[1].toLowerCase()){ player.position = new mp.Vector3(parseFloat(args[2]), parseFloat(args[3]), parseFloat(args[4])); res = " Player "+player.name+" was teleported to X:"+parseFloat(args[2])+" Y:"+parseFloat(args[3])+" Z:"+parseFloat(args[4])+"!!!"; } }); } else { res = " Invalid arguments!!!" } break; case "give.weapons": if(args.length>3){ mp.players.forEach(player => { if(player.name.toLowerCase() == args[1].toLowerCase()){ player.giveWeapon(mp.joaat(args[2]), parseInt(args[3])); res = " Player "+player.name+" received weapons!!!"; } }); } else { res = " Invalid arguments!!!" } break; case "status": res = "\n Players: "+mp.players.length+"/"+mp.players.size+"\n Vehicles: "+mp.vehicles.length+"\n Objects: "+mp.objects.length+"\n Wheather: "+mp.environment.weather+"\n Game Time: "+mp.environment.time.hour+"h\n Uptime: "+process.uptime()+"\n"; break; case "online": res = "\n Online: "+mp.players.length+"/"+mp.players.size+"\n "; mp.players.forEach(player => { res += player.name+" | "+player.ip+" | "+player.ping+"\n "; }); break; default: res = " Unknown command!!!"; break; } return res; } rl.on('line', (s) => { var res = ParseCmd(s); console.log(res); }); After that, append to file 'packages/keker/index.js' the following line: require("./commandline"); Then you can execute commands on the server console. The list of available commands as seen from the code: ban <PlayerName> -> Kiked player kick <PlayerName> -> Baned player tppos <PlayerName> <X> <Y> <Z> -> Teleport player to coordinates give.weapons <PlayerName> <WeaponName> <Amount> -> Give weapon to player status -> Show server info online -> Show players list with info(Name,IP,Ping)
    1 point
  4. Сейчас есть клиентсайд на C#, и вроде он легче JS как минимум тем что под него есть Visual Studio (не Code) и она умеет выдавать подсказки, аля список всех методов и может показывать параметры. Но как я понял для работы C# на клиенте нужно создать в корне мп файл enable-clientside-cs.txt. Надеюсь эту особенность в скором времени уберут.
    1 point
  5. let ArmyColShape = mp.colshapes.newSphere(-2126.56128, 3285.96265, 37.7325134, 5); mp.events.addCommand('armyduty', (player) => { if(ArmyColShape.isPointWithin(player.position)) { //The player is within the colshape } else { //Handle if the player isn't } }) How I understand it, it's something like this you're looking for
    1 point
  6. George made an example script for this a long time ago https://cdn.discordapp.com/attachments/262161848256823297/305304064990773249/index.js Could be a bit outdated now
    1 point
  7. Natives in Natives.js are outdated, this block should be changed. const __Natives__ = { SET_ENTITY_ALPHA: ['0x6B7820A04F7672B8', '0x93271EC996EE94D2', '0x44A0870B7E92D7C0'], RESET_ENTITY_ALPHA: ['0x646D2E88F7E1B20A', '0x2087B43C7787E236', '0x9B1E824FFBB7027A'], GET_ENTITY_MODEL: ['0xE9559A12052415BE', '0x4F69FBD64CDF125B', '0x9F47B058362C84B5'] };
    1 point
×
×
  • Create New...