Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/19/19 in Posts

  1. Hey, Im new to the RAGE-MP. I started moving from GT-MP and have issue with events. PlayerConnected doesn't trigger also PlayerDisconnected tells me that i have wrong number of parameters dispite using sample code. using GTANetworkAPI; namespace RP { public class ConnectionHandler : Script { [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnect(Client player) { NAPI.Util.ConsoleOutput("Connected"); World.Players.Add(player, new Player(player)); } [ServerEvent(Event.PlayerDisconnected)] public void OnPlayerDisconnect(Client player, DisconnectionType type, string reason) { if(type == DisconnectionType.Left) NAPI.Chat.SendChatMessageToAll("~b~" + player.Name + "~w~ left. " + reason); World.Players.Remove(player); } } } I downloaded GTANetworkAPI version 3.6 as NuGet Package
    1 point
  2. delete the content from the bin folder and compile the sln again
    1 point
  3. do you have WiredPlayers-Client.sln complied?
    1 point
  4. So etwas gehört hier nicht hin, bitte schreibe Beiträge wie diesen in das GVMP Forum.
    1 point
  5. В index.js пишите примерно так: require('./путь/к/папке');
    1 point
  6. mp.events.add('loginInformationToServer', (usuario, contraseña) => { activeCam = false; if (sceneryCamera !== null) sceneryCamera.setActive(activeCam); mp.game.cam.renderScriptCams(false, true, 2000, true, false); mp.events.callRemote('OnPlayerLoginAttempt', usuario, contraseña); }); Takes 2 transition to return back to your player.
    1 point
  7. It's the solution George gave on Discord, seems that there were some issues with 0.3.6 Nuget package.
    1 point
  8. Yes, that's the one i mean. You replaced the one located on the Nuget package's path, right? And after doing that, did you compile your gamemode?
    1 point
  9. If you're using 0.3.6 Nuget, make sure to copy the Bootstrapper from runtimes folder into the path where the Nuget package is installed.
    1 point
×
×
  • Create New...