@renevds you are welcome, if you use IntelliSense you will find a lot of properties and methods that you didn't know about.

Konijima
View profile on GTA5-Mods.com »
Posts made by Konijima
-
RE: SHV.N getting mdoel name from entity
-
RE: SHV.N getting mdoel name from entity
@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?
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?
@QBit07 Like throwing molotov and grenade distance?
-
RE: Please fix this bug
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 Events
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 bug
Hey i restarted my browser seem i got back into my own account. This wack tho
-
RE: Please fix this bug
This is not my account, i randomly gained access to the GTAOverdrive's account
-
Please fix this bug
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 mod
@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.