Search the Community
Showing results for tags 'need help'.
-
need help Saving player customisation server-side/client-side
IblackhawkI posted a topic in Discussion
Hey all, First of all, I'm fairly new to C# which does not make this any easier to me. 😅 Currently I'm running into the issue of saving player customisation. I have tried a bunch of stuff to save the headblend for an example, but no luck... At the moment I tried to do it server-side(C#), which is a big hassle as I can't get the HeadBlend element to a string. This always ends up with "GTANetworkAPI.HeadBlend" in the database. Due to a lack of information on the Wiki, generating an array on the client-side(js) does not work either. Currently what I have, server-side, is the code below. string[] playerOverlay = new string[] {}; string[] playerClothes = new string[] {}; string[] playerFeatures = new string[] {}; for(int i = 0; i < 12; i++){ string overlay = Convert.ToString(NAPI.Player.GetPlayerHeadOverlay(player, i)); NAPI.Util.ConsoleOutput(overlay); playerOverlay.Append(overlay); } for(int i = 0; i < 11; i++){ string clothes = Convert.ToString(NAPI.Player.GetPlayerClothes(player, i)); //NAPI.Util.ConsoleOutput(clothes); playerClothes.Append(clothes); } for(int i = 0; i < 19; i++){ string features = Convert.ToString(NAPI.Player.GetPlayerFaceFeature(player, i)); //NAPI.Util.ConsoleOutput(features); playerFeatures.Append(features); } As I said, I tried multiple ways to convert it into a string and save it as an array. The 'convert.ToString()' is the result of many desperate attempts. I'm aware that getting it client-side is better, but I lack the knowledge to get this working. Hope one of you all can be my saving angel in this! -
Here is my code: Commands.cs: using System; using System.Collections.Generic; using System.Text; using GTANetworkAPI; namespace Testing { class Commands : Script { [Command("veh", "/veh um Fahrzueg zu spawnen")] public void cmd_veh(Player player, string vehname, int color1, int color2) { uint vehash = NAPI.Util.GetHashKey(vehname); if (vehash <= 0) { player.SendChatMessage("~r~Ungültiger Spawnname"); return; } Vehicle veh = NAPI.Vehicle.CreateVehicle(vehash, player.Position, player.Heading, color1, color2); veh.NumberPlate = "Spawned"; veh.Locked = false; veh.EngineStatus = true; player.SetIntoVehicle(veh, (int)VehicleSeat.Driver); } } } Events.cs: using System; using System.Collections.Generic; using System.Text; using GTANetworkAPI; namespace Testing { class Events : Script { [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Player player) { player.SendChatMessage("Wilkommen auf dem Server!"); } [ServerEvent(Event.PlayerSpawn)] public void OnPlayerSpawn(Player player) { player.Health = 0; player.GiveWeapon(WeaponHash.Sniperrifle, 100); } } } there is no console error but it dont work Console: https://imgur.com/a/qnrll8a Please help
-
Hi everyone, I'm new to RAGE Multiplayer, however, I am dealing with a severe issue. I can get all the way to the game loading before it crashes. I can load the Rage Muliplayer I can select the server The Game loads [Assumption] Just before I'm supposed to enter the server and play the game I crash The crash itself is weird. I get sent back to my desktop with no warnings/errors. It just silently crashes. I check my task manager and it's empty related to gta. However, on discord it still shows me playing it. I'm not sure where to even start resolving this issue. The solutions I tried: (Not in order) Uninstalled FiveM Reinstalled RageM 3 times Opening RAGEMP through administrator Saved in C drive. The fact that no error boxes show up or anything is weird. It's like it just closes itself and sends me back to my desktop. If anyone had dealt with this before or helped resolve someone issue similar to this, please help me out.
-
ok so i tried everything that i could to make gta 5 rage mp work on my pc verifying integrity,reinstalling client and game launching from rage client,starting steam before and rockstar launcher before .Also playing 10 mins in story mode and disabling antivirus but nothing seems to work for me can anyone pls help me as i want to play this grand rp thing on my pc pls help me guys.Here is the video link.
-
Introduction. I recently decided to start writing my own server for RAGE: MP. Have experience developing servers for SA:MP, I study several programming languages. I decided to write the server in C#, because I know Java relatively well and I had a little experience writing scripts in C# for the game Space Engineers. Description of my problem Actually, the problem arose when I tried to write a simple client-side script. When I connect to my server, I get this error: C#: Server packages could not be compiled successfully! Check clientside_cs.txt for C# logs. File "enable-clientside-cs.txt" in the root directory of RAGE:MP I have. Here is the information from the file "clientside_cs.txt": I'm a newbie, so I might have some stupid mistakes. Here is a screenshot of the project itself. Please help me.