Controls
N = Freeze time
M = Unfreeze 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
Downloads: 4,183
Added: March 10, 2012 12:54PM
Last Downloaded: June 19, 2013 4:12AM File Size: 500 B
» Author Website
N = Freeze time
M = Unfreeze 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
| Rating: | |
| 7.31/10 - 26 votes |
Added: March 10, 2012 12:54PM
Last Downloaded: June 19, 2013 4:12AM File Size: 500 B
» Author Website




















but anyway , useful , 10/10
GTA.Object.AttachToPed(GTA.Ped, GTA.Bone, GTA.Vector3, GTA.Vector3)
Or you can use a gta native which would look like this,
GTA.Native.Function.Call("ATTACH_OBJECT_TO_PED", obj2, Player.Character, 14754, 0.0f, .55f, 2.25f, 0.0f, 0.0f, 0.0f, 0);
i have this line in my new laddermod im about to update,
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.
look at other notepad viewable mods to see what you need to write.
I told you it's complicated :) I just started this a few months ago
And how about learning how to edit an INI? You can also disable most functions by default even with the trainer "enabled" and you can remove or change any hotkey...
Two posts ago when i was explaining the attach line, the last 3 0.0f mess with rotation if that helps anyone.
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.