@renevds you are welcome, if you use IntelliSense you will find a lot of properties and methods that you didn't know about.
Posts made by Konijima
-
RE: SHV.N getting mdoel name from entityposted in General Modding Discussion
-
RE: SHV.N getting mdoel name from entityposted in General Modding Discussion
@renevds Here some options
Vehicle currentVehicle = Game.Player.Character.CurrentVehicle; if (currentVehicle != null && currentVehicle.Exists()) { Notification.Show( currentVehicle.ClassDisplayName ); // VEH_CLASS_6 Notification.Show( currentVehicle.ClassLocalizedName ); // Sports Notification.Show( currentVehicle.DisplayName ); // NINEF Notification.Show( currentVehicle.LocalizedName ); // 9F Notification.Show( currentVehicle.Model.Hash.ToString() ); // 1032823388 Notification.Show( ((VehicleHash)currentVehicle.Model.Hash).ToString() ); // Ninef }
-
Native/Script SET_WARNING_MESSAGE not working?posted in General Modding Discussion
I been playing around with the native SET_WARNING_MESSAGE and SET_WARNING_MESSAGE_WITH_HEADER but didn't get any luck on making it work.
I am using ScriptHookVdotNet3.
Native:
void SET_WARNING_MESSAGE_WITH_HEADER(char* titleMsg, char* entryLine1, int flags, char* promptMsg, BOOL p4, Any p5, BOOL background, Any* p7, BOOL showBg);
https://runtime.fivem.net/doc/natives/?_0xDC38CC1E35B6A5D7Code:
if (Game.IsControlJustPressed(Control.Talk)) { Function.Call(Hash.SET_WARNING_MESSAGE_WITH_HEADER, "HUD_QUIT", "HUD_CGIGNORE", 2, "HUD_CGINVITE", 0, -1, 0, 0, 1); }Result:
The radar flashes once I press the key and the mouse cursor appear for a single frame.
Been trying the exact way it is found in the decompiled scripts and still not working.
Does anyone had success with this before?
Ps: I know i can recreate this easily with other method and already have. Just wondering why i can't seem to make it work.
-
RE: PC throwing distance?posted in General Modding Discussion
@QBit07 Like throwing molotov and grenade distance?
-
RE: Please fix this bugposted in Site-Related Questions & Feedback
It just happened again, i left my browser session open then when i came back later i had the popup Session Mismatch, I was then someone else without refreshing so i logged off and re-logged to my account. Seem to have something to do with session expiration
while page is still openit clearly send me someone else token when revalidating or something. -
[Tutorial/Documentation] Native Game Eventsposted in Tutorials
I am sharing this little code that let you detect game events such as entity getting damage or killed. There is more events available, need the decompiled scripts to find them.
Also don't hesitate to let me know if I made a mistake or if you have a better way of doing this or if you know more events.
GET_NUMBER_OF_EVENTS
https://runtime.fivem.net/doc/natives/?_0x5F92A689A06620AAGET_EVENT_AT_INDEX
https://runtime.fivem.net/doc/natives/?_0xD8F66A3A60C62153GET_EVENT_DATA
https://runtime.fivem.net/doc/natives/?_0x2902843FCD2B2D79Events:
id: 16 = Seems to be happening when crime is reported (need more test)
id: 141 = Damaged
id: 142 = DiedThe C# code using Scripthookvdotnet3:
private void OnTick(object sender, EventArgs args) { if (Game.Player.IsAlive) { // Loop all game event this tick and every tick for (int x = 0; x < Function.Call<int>(Hash.GET_NUMBER_OF_EVENTS, 0); x++) { // Get event id int eventId = Function.Call<int>(Hash.GET_EVENT_AT_INDEX, 0, x); string eventName = (eventId == 141) ? "Damaged" : ((eventId == 142) ? "Killed" : "Unknown"); // Prepare objects OutputArgument outEntity = new OutputArgument(); Entity myEntity = null; // Get the event data if (Function.Call<bool>(Hash.GET_EVENT_DATA, 0, x, outEntity, 1)) { int handle = outEntity.GetResult<int>(); myEntity = Entity.FromHandle(handle); // Ignore if event is for player (optional) if (handle == Game.Player.Character.Handle) return; // Make sure the entity actually exist if (myEntity != null && myEntity.Exists()) { switch(myEntity.EntityType) { case EntityType.Invalid: break; case EntityType.Ped: break; case EntityType.Prop: break; case EntityType.Vehicle: break; } } } } } } -
RE: Please fix this bugposted in Site-Related Questions & Feedback
Hey i restarted my browser seem i got back into my own account. This wack tho
-
RE: Please fix this bugposted in Site-Related Questions & Feedback
This is not my account, i randomly gained access to the GTAOverdrive's account
-
Please fix this bugposted in Site-Related Questions & Feedback
There is a BREACH going on on 5Mods, i randomly switch accounts to random users, PLEASE HELP ME
-
RE: can you help to create my own full menu modposted in General Modding Discussion
@lykosss I would suggest you search for C# tutorial try beginner videos or articles. Learn the very basic of variables, functions and progressivly move to more complex (remember oriented object) as you feel.
Why C#, because it's very good for beginner. But also menu mods are easily done with C# and NativeUI library.
Also you will find bunch of exemples for making menu or scripts mods.
Also when you start learning programming don't hesitate to search for every word or concept you don't fully understand, stack overflow and google are litteraly archives of question/answers!
I wish you success into this adventure.
-
RE: Random crashes after installing scriptsposted in General Modding Discussion
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.
-
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.
-
RE: [WIP] GTAVOverrideposted in Releases & Works in Progress
GTAV Override [.NET] 1.0.0.14
GTAVOverride is a mod with toggle-able/configurable integrated features, it also stops all normal single-player scripts so the most basic things like death become very plain, this allows to re-define the whole single-player experience.
Some or most of the features are dependent on the fact that GTAV single-player script are killed.
So the mod try to provide remake functionalities like death/arrest, savegame, persistence and more ways of making money in a custom sandbox environment.Trying to combine this mod with other mod is at your own risk, try playing with config file GTAVOverride.ini if you experience incompatibilities. It may resolve them.
The KillScript kills all 515+ scripts when the loading screen has completed. If you manually load a savegame or start a new game you will have to refresh scripts with your hotkey to restart it. You can change the delay before the kill-script is executed. You can also force this mod to ONLY KILL SCRIPTS if it's the only thing you need.
You can now NOT KILL the scripts to use this mod in normal single player, you will need to cherry pick the scripts you enable.
I will make a exception list in the future so that we can cherry pick any scripts, will need further testing.
FEATURES:
-
Player persistence, auto-save with many settings.
(Always load your game where you left it, player loadout is coming next.) -
Vehicle persistence, auto-save last used vehicle.
(Add vehicle blip on the radar when leaving vehicle, load the same vehicle next time.) -
Kill all Single-Player scripts for sandbox mode or don't if you want to keep single-player story, but you will need to cherry pick your settings.
(Make the game run smoother for some people and allow replacement of base game features.) -
Rob pedestrian or groups at gun point, on foot or bikes, speeches work best with the 3 main characters.
(Field of view, intimidation, control masses of people and manage person one by one by threatening them) -
Randomize all pedestrians money.
(Now have three social class, poor, regular, rich. Will ajust the model list, open to suggestions) -
Choose between 3 different clock time mode.
(Real-time like real-life, Virtual with custom timescale, Vanilla like GTAVanilla) -
Choose what blips you want on the map featuring all Hospitals & Police Stations.
(Will be toggle-able one by one, one day) -
Will add all stores and mostly all ATM I can find.
(And eventually make them operational) -
Choose your re-spawn mode and fees at Death and Arrest.
(Now set the fees, Disable Hospital/Police re-spawns, eventually add custom spawn-points, etc...) -
Have a cleaner Wasted and Busted screen without texts.
(Probably gonna add different style)
-
Allowing creation of mods compatible with GTAVOverride, with many tools to access. (WIP)
CONFIGS:
You can change settings manually by editing "GTAVOverride.ini " file.
There are various categories of setting, I will try to explain them here.
DOWNLOAD
https://www.gta5-mods.com/scripts/net-gtav-override
SOURCE CODE
https://github.com/Konijima/GTAV-Override-Framework
[SETTINGS]
DEBUG_MODE [True | False]
Toggle the debug mode on if your curious.KILL_GTAV_SCRIPTS_MS_DELAY [Milliseconds]
Set a delay before the mod start killing GTAV scripts, use this if you need time with other mods.KILL_GTAV_SCRIPTS_ONLY [True | False]
Only kill all GTA V scripts at start. This override any other settings.DONT_KILL_GTAV_SCRIPTS [True | False]
Do not kill the GTAV scripts, but you will need to play around with settings to make the perfect fit for you, like disabling Ammunations blips, ATMs, etc... You will have the normal single player mixed with the feature you enabled in the mod. Expect shit.INFO_INTRO_SCREEN [True | False]
Enable the info intro screen when the game has loaded. It show Time, Date and Location for a duration of your choice.INFO_INTRO_SCREEN_MS_DURATION [Milliseconds]
Duration of the intro screen when the game has loaded. 4000 is 4 seconds.UNLOCK_ALL_DOORS [True | False]
Will allow to unlock all doors, gonna take some time to make so for now let's say it don't do that much.HOSPITAL_SPAWN_ONDEATH [True | False]
Set to False to prevent respawning at the nearest hospital when wasted.
Will respawn near death location.HOSPITAL_FEE [500]
Set the hospital fees when you respawn after death.POLICESTATION_SPAWN_ONARREST [True | False]
Set to False to disable respawning at the nearest police station when arrested.
Will respawn near death location.POLICESTATION_FEE [200]
Set the policestation fees when you respawn after arrested.RANDOMIZE_PEOPLE_MONEY [True | False]
Randomizing people money between 0 to Your Desired Maximum.RANDOMIZE_POOR_PEOPLE_MAXMONEY [Default: 30]
The maximum money poor people will possibly have when robbed or killed.RANDOMIZE_REGULAR_PEOPLE_MAXMONEY [Default: 100]
The maximum money regular people will possibly have when robbed or killed.RANDOMIZE_RICH_PEOPLE_MAXMONEY [Default: 300]
The maximum money rich people will possibly have when robbed or killed.SHOW_HUD_ONKEYDOWN- (CHANGED)
SHOW_RADAR_ONKEYDOWN [True | False]
Hold Character Wheel key to show radar and clock. Set this to False to keep the radar shown normally and will still need to hold the key for the clock.
[SCRIPTS]
PLAYER_DEATH_ARREST_SCRIPT [True | False]
Disable Wasted and Busted effects and sounds.PLAYER_PERSISTENCE_SCRIPT [True | False]
Disable the auto-save system.
Player persistence is not completed yet, it is very basic.
I am currently working on making it save your current and last used vehicle for next reload.CLOCKTIME_SCRIPT [True | False]
Disable the custom real-time clock system.TIMESCALE_SCRIPT [True | False]
Disable the slow-motion effect from this mod.ECONOMY_SCRIPT [True | False]
Disable the economy system, currently does nothing but is prepared to allow banking and interest rate. Will be used will ATM_SCRIPT.ROB_PEOPLE_SCRIPT [True | False]
Disable the Rob people at gun point script.PEOPLE_MONEY_SCRIPT [True | False]
This script is responsible for people money randomization and debug money text.ATM_SCRIPT [True | False]
Disable the ATM script, this will remove the custom ATM functionality by this mod.STORE_SCRIPT [True | False]
Disable the store script. Not used yet.WAYPOINT_TOOLS_SCRIPT [True | False]
Disable the waypoint location subtitle.
[ROB_PEOPLE_SCRIPT]
DISTANCE_OF_REACH [20] - (NEW)
Maximum distance to threaten people, setting this too high might be overkill.RESTRICT_WHEN_STARS_BIGGER_THEN [1] - (NEW)
When wanted stars or higher than that number you can't rob people anymore, set this to 5 always be able to rob.QUICK_ROB_PEOPLE_NO_PICKUP [True | False] - (MOVED)
Set to True to receive the loot directly. Will not spawn wallets and handbags from people.
The money is auto-magically added to your player, perfect when robbing on a bike!HELP_MESSAGE_BEEP_SOUND [True | False] - (NEW)
Enable the beep sound when you target a person from behind and the help message show up.
[CLOCK]
CLOCK_MODE [Sync | Virtual | Vanilla]
There are 3 clock modes:- Sync - synchronize with your system clock, can't advance time.
- Virtual - customizable timerate. Can advance time in future and choose the speed of a second.
- Vanilla - time as the original game offer.
Time and Date are saved with the player save file for persistence.
VIRTUAL_TIMERATE [0.25]
Timerate is for the Virtual Clock Mode, it let you change the speed of a second.
1 equal to 100%, 0.5 equal to 150% faster, 1.5 equal to 50% slower.ENABLE_TOP_CLOCK [True | False] - (NEW)
Enable the top clock when holding character wheel key down.SHOW_SECONDS [True | False]
Enable seconds visibility.MILITARY_TIME_FORMAT [True | False]
Military time format is 24hr clock, setting this to False will make the time 12hr clock with AM/PM.
[BLIPS]
SHOW_AMMUNATIONS [True | False]
(WIP) Show ammunations around the map and show different blip for gun range.SHOW_ATM [True | False]
(WIP) Show all stores around the map. Fade if the atm is unavailable.SHOW_STORES [True | False]
(WIP) Show all stores around the map. Fade if the store is unavailable.SHOW_HOSPITALS [True | False]
Show all hospital around the map.SHOW_POLICESTATIONS [True | False]
Show all police stations around the map.
[DATA]
SAVE_DIRECTORY_PATH [scripts/GTAVOverrideData/]
Set the directory path to save the game.SAVE_PLAYER_FILENAME [player0]
Set the name your game will be saved.AUTO_SAVE_ENABLED [True | False]
Toggle whether the game can save or not.AUTO_SAVE_DELAY [Milliseconds]
Set the delay between auto-save in milliseconds.AUTO_SAVE_SHOW_SPINNER_TEXT [True | False]
Show "Autosave..." with the saving spinner. Just a preference.AUTO_SAVE_AFTER_DEATHARREST [True | False]
Auto-save the game when you are fully re-spawned.AUTO_SAVE_WHEN_WANTED [True | False]
Allow auto-save while being wanted by the cops. False by default for a challenge.Will addAdded a feature that auto-save when successfully loosing the cops. Active only if False.AUTO_SAVE_IN_VEHICLE [True | False]
Allow auto-save while sitting in a vehicle. Willnotauto-save in flying vehicle, if landed.AUTO_SAVE_ON_TRANSACTION [True | False]
Do auto-save when your money has changed, positively and negatively. -
-
[WIP] GTAVOverrideposted in Releases & Works in Progress

GTAVOverride
Post to be updated...
PROJECT
https://drive.google.com/open?id=1wBOaSv84M3aUeFdoIYhcEnIhnugUxQt6
GITHUB:
https://github.com/GTAVOverride/
DOWNLOAD:
Work in progress
DISCORD:
-
RE: Site suggestionsposted in Site-Related Questions & Feedback
@OmegaKingMods Poll could be really interesting, like what features would you like to see in next update with choices A, B, C, D, Add more button