Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/10/18 in all areas

  1. The bridge is working with 2.0 version of .NET Core, 2.1 will be supported with 0.4 version of RAGE.
    1 point
  2. I was searching for the first one. I thought about doing it with an foreach loop but i hoped there would be a better possibility. But thank you
    1 point
  3. Server-Side: When you want to find a certain player, that didn't call the command, you could use that: /** * @author Paccoderpster * @description With that function you can find a certain player * @param {str} name The name of the player * @returns {player}, if the player is found or null, if this player isn't logged in */ global.findPlayer = function findPlayer(name) { let players = mp.players.toArray(); for(let p in players) { if(players[p].name == name) { return players[p]; } } return null; } Or, if you want the player object from the player that called the command, you don't have to do anything. mp.events.addCommand(`givemoney`, (player, string) => { //Do Something with player }); Client Side: let player = mp.players.local;
    1 point
  4. Version 1.0.0

    2521 downloads

    A ~20 lines client-side script to enable vehicle entering using F/G keys. Radius, max vehicle speed to enter and keys are customizable. This script doesn't search the nearest passenger seat, but the first empty (since it's just an example of how to do that at all and show that it really was customizable).
    1 point
  5. I believe it can be depended on a lot of things. I'd suggest you to download a resource and check through it what could be the issue.
    0 points
×
×
  • Create New...