Doesn't seem like the error of the crash has been logged. Try toggleing mods one by one and figure when it happen or not.
Konijima
View profile on GTA5-Mods.com »
Posts made by Konijima
-
RE: Random crashes after installing scriptsposted in General Modding Discussion
-
RE: can you help to create my own full menu modposted in General Modding Discussion
@lykosss Do you have some programming background/experience?
-
RE: Need help with .ini fileposted in General Modding Discussion
@QBit07 You must wrap your text between double ~~
It wont work with paragraph so you must only wrap a single line of text with it, I think. -
RE: Need help with .ini fileposted in General Modding Discussion
omg i was confused there alright sorry @QBit07
-
RE: Need help with .ini fileposted in General Modding Discussion
@QBit07
well the code Jitnaught gave does exactly what he want.It read the setting at start then it attach a keydown handler, that check for the needed key press.
I'm not sure I understand your problem also.
Maybe elaborate on what you have right now and what doesn't work for you. -
RE: Need help with .ini fileposted in General Modding Discussion
@ShadoFax the script is a class extending an other class Script.
The line public Test() is the constructor of your class.
Inside your constructor you set the code you want to execute once the mod is loaded.
Search object oriented programming, C# classes, constructor if you wanna learn more about it.
using GTA;
public class Test : Script {
public Test() {
// will run when mod is loaded.
// will run only once unless you reload scripts.
}
} -
RE: does anyone know how to finish this line because it keeps giving me errors:posted in General Modding Discussion
@ShadoFax it is a method.
Game.Player.Character.Weapons.RemoveAll();
need the () at the end.
-
RE: What is the Function For Setting Skills? (Can't Find it In Game.Player/.Character)posted in General Modding Discussion
We can mark this as Solved I think.
To set the stats for X character change the number after SP.
PlayerZero = Micheal = SP0
PlayerOne = Franklin = SP1
PlayerTwo = Trevor = SP2C# Class
public static class Stats { public enum PlayerStats { TOTAL_CASH, STAMINA, SHOOTING_ABILITY, STRENGTH, STEALTH_ABILITY, FLYING_ABILITY, WHEELIE_ABILITY, LUNG_CAPACITY } public static void SetPlayerStat(int playerIndex, PlayerStats stat, int value) { if (playerIndex < 0 || playerIndex >= 3) throw new Exception("Stats.SetStat playerIndex must be between 0 and 2."); if (value < 0) throw new Exception("Stats.SetStat value cannot be negative."); string enumName = Enum.GetName(typeof(PlayerStats), stat); Function.Call(Hash.STAT_SET_INT, Game.GenerateHash(String.Format("SP{0}_{1}", playerIndex, enumName)), value, false); } }Usage
// Reset player zero Stats.SetPlayerStat(0, Stats.PlayerStats.TOTAL_CASH, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.FLYING_ABILITY, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.LUNG_CAPACITY, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.SHOOTING_ABILITY, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.STAMINA, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.STEALTH_ABILITY, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.STRENGTH, 0); Stats.SetPlayerStat(0, Stats.PlayerStats.WHEELIE_ABILITY, 0); // Reset player one Stats.SetPlayerStat(1, Stats.PlayerStats.TOTAL_CASH, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.FLYING_ABILITY, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.LUNG_CAPACITY, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.SHOOTING_ABILITY, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.STAMINA, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.STEALTH_ABILITY, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.STRENGTH, 0); Stats.SetPlayerStat(1, Stats.PlayerStats.WHEELIE_ABILITY, 0); // Reset player two Stats.SetPlayerStat(2, Stats.PlayerStats.TOTAL_CASH, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.FLYING_ABILITY, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.LUNG_CAPACITY, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.SHOOTING_ABILITY, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.STAMINA, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.STEALTH_ABILITY, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.STRENGTH, 0); Stats.SetPlayerStat(2, Stats.PlayerStats.WHEELIE_ABILITY, 0);You can see all stats in common.rpf/data/spstatssetup.xml and mpstatssetup.xml.
spstatssetup.xml
https://pastebin.com/cnzgrjVS -
RE: Weapons are Scary.NETposted in Releases & Works in Progress
@Jitnaught from my part I consent. Those are old mods and I lost the sources so I don't mind.
And @bloolol you can get the other old mods here https://github.com/Konijima/OLD-GTA5-Mods
-
Scripthookdotnet 3, when aborting log errors.posted in Installation Help & Troubleshooting
Hi guys, not much of a real problem but when many script instances are aborted at the same time it does create an error in the in-game console. Because scripthookdotnet3 is trying to write that the script has aborted into the log but cannot do so multiple time at the same time. Anyway to not get the error? I feel it could scare users away thinking there is actual errors. If not then it doesnt really matter since it doesnt break anything. Maybe a param to abort silently.