Freeze Time

I saw a mod to lock the time of day somewhere but it didnt work for me, so i made this. An ini is included so you can change the keys and a message is displayed when you freeze/unfreeze time ingame. This was made for 1.0.7 and goes in your gtaiv scripts folder

it's a complicated process look at my mods with notepad and you can see what I wrote. A lot of reading is involved. Read some c# tutorials, get good with Visual Studio c#. It is free to download. Start a new project in Visual Studio C# and open the solutions explorer. Right click your new solution/project and add a reference. Click the browse tab, In the newest scripthookdotnet release there is a fordevelopers folder, in that there is a bin folder and a scripthookdotnet.dll file. Add that dll as a reference for your new project. Right click your solution and add a reference again, this time click the .NET tab and select System.Windows.Forms. Now your ready to write your mod. To find what you need to write to make your mods double click the scripthookdotnet reference in the solutions explorer to open the object browser in Visual studios. In your code you will usually be using lines from there, or original gta stuff. For example, if I want to write a line that attaches an object to a player. I can write the line in two ways basically. I can find what i need in the scripthookdll reference in Visual studios solution explorer search. That line would look something like this,

ill explain the line a little bit even tho im sure im pissing in the wind lol.

14754 is the decimal value of the bone im attaching the ladder to. I found the bones hexidecimal value i had to convert to decimal. 0.0f is the left right value (- +), .55f is the forwards and reverse value (- +), 2.25f is the up down value (- or +)

You have to do some tricky stuff sometimes, even to get simple things to work. In my ladder mod, to spawn ladders in the direction the player is facing i had to create the ladder, then attach it to the player, then detach it and adjust the coordinates all while asking if the obj exists. It was pretty tricky, you can look at the ladder mod with notepad when i update it in a few days to see what I mean.

Once you know the structure of C# scripts learned from C# tutorials, where to set the variables, where the contructer is, what methods are, ticks, keydowns... then you can learn all the gta stuff.

Also if you want to learn how to do this, you should rewrite some of the example scripts that come with Scripthookdotnet(shdn).

Start a new c# class project in visual studios, add those two references i said above then at the top in VS click open file and browse to your gta/scripts/for developers\test scripts\scripts and open one of the example scripts there. Rewrite those example scripts and try them ingame.