danharibo 0 Posted December 25, 2008 code Fixed the script, shouldn't cause major lag, and should work properly. Press End to toggle Gravity on/off hm now we need some kind of air control... If you jump off a motorcycle at speed you can fly across the gap between the islands Quote Share this post Link to post Share on other sites
Killuminati91 0 Posted December 25, 2008 code Fixed the script, shouldn't cause major lag, and should work properly. Press End to toggle Gravity on/off hm now we need some kind of air control... If you jump off a motorcycle at speed you can fly across the gap between the islands yeh already did that lol... but i mean somekind of superman-flymode Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 (edited) Danharibo: I Said Change The Gravity Code, IT can't Be Pressed, Change Iskeypressed 23 to 3535 Is the Decimal Of End and There Are No 23, it was hexadecimal , i know this from a person in here Marcin6 : Use My Weapon Spawner? Edit : Here it is http://www.gtaforums.com/index.php?showtopic=386908&st=20 And Additional Question: What Program Did You Use To Edit Or Make Animated Gif? Edited December 25, 2008 by aceship Quote Share this post Link to post Share on other sites
danharibo 0 Posted December 25, 2008 Danharibo: I Said Change The Gravity Code, IT can't Be Pressed, Change Iskeypressed 23 to 3535 Is the Decimal Of End and There Are No 23, it was hexadecimal , i know this from a person in here Marcin6 : Use My Weapon Spawner? Edit : Here it is http://www.gtaforums.com/index.php?showtopic=386908&st=20 And Additional Question: What Program Did You Use To Edit Or Make Animated Gif? I did, that's why it works Quote Share this post Link to post Share on other sites
Marcin6 14 Posted December 25, 2008 But then I`ve be gut this lot`s of ammo ? Quote Share this post Link to post Share on other sites
jadire 0 Posted December 25, 2008 Doesn't work, im pressing END and nothing is happening. Quote Share this post Link to post Share on other sites
sjaak327 1,026 Posted December 25, 2008 Doesn't work, im pressing END and nothing is happening. That's because the key you need to press is 5 Or change the value in iskeypressed(35) to (23) and use end. Quote Share this post Link to post Share on other sites
danharibo 0 Posted December 25, 2008 Doesn't work, im pressing END and nothing is happening. That's because the key you need to press is 5 Or change the value in iskeypressed(35) to (23) and use end. The Key I'm pressing is End. Not sure why it would not work Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 (edited) I Think Not 35, it was 53 Right? to use 5 And I Said 23 to 35 not 35 to 23 Edited December 25, 2008 by aceship Quote Share this post Link to post Share on other sites
Killuminati91 0 Posted December 25, 2008 35 works with end BUT: it doesnt turn on with every press, its like every 3rd keypress. turning off works fine Quote Share this post Link to post Share on other sites
danharibo 0 Posted December 25, 2008 35 works with end BUT: it doesnt turn on with every press, its like every 3rd keypress. turning off works fine I think that's a bug with gtaIV, if you tap the key between a frame, it doesn't realize you pressed the key Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 Try Delete All The Wait(Maybe Crash) In The Function Main Only First, After That not Working , Delete all The wait, And Ask Again , What Program Did You Use To Create An Animated Gif? Quote Share this post Link to post Share on other sites
Intosia 0 Posted December 25, 2008 Try Delete All The Wait(Maybe Crash) In The Function Main Only First, After That not Working , Delete all The wait, And Ask Again , What Program Did You Use To Create An Animated Gif? Dont delete the Wait in the main while loop, it will eat alot of CPU. About the keypressing, i noticed i had to press it at least 1,5 second before it registers. Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 Thats Why I Say Maybe Crash, And What Code Did You Use "If I There are an Weapon (3) Then Don t Do Anything"? Quote Share this post Link to post Share on other sites
sjaak327 1,026 Posted December 25, 2008 I Think Not 35, it was 53 Right? to use 5And I Said 23 to 35 not 35 to 23 Yes I mixed them up The code is using 23, the hexadecimal value of that is 17, that won't work. Anyway the script isn't doing anything for me. Quote Share this post Link to post Share on other sites
Marcin6 14 Posted December 25, 2008 Here's the Superman script without the weapons. Invincibility Script ---------- GTA IV Invincibility -------------------- Code © Alexander Blade 2008 ---------- --global variables PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0function InitScript() -- blah-blah-blah Wait(10000)endfunction WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do  Wait(2000) endendfunction WaitForValidPlayer() PLAYER_CHAR = 0 repeat   CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then PushInt(PLAYER_ID) CallNative("CONVERT_INT_TO_PLAYERINDEX") PLAYER_INDEX = GetIntResult() PushInt(PLAYER_INDEX)   PushVarPtr()  CallNative("GET_PLAYER_CHAR") PLAYER_CHAR = GetIntParam(1) if (PLAYER_CHAR <= 0) then  Wait(1000) end  end  until (PLAYER_CHAR > 0)  end function SetPlayerProperties() PushInt(PLAYER_INDEX) PushInt(1) CallNative("SET_PLAYER_INVINCIBLE") PushInt(PLAYER_INDEX) PushInt(1) CallNative("SET_PLAYER_NEVER_GETS_TIRED") PushInt(PLAYER_INDEX) PushInt(1)endfunction main() InitScript() while true do  WaitForPlayerPoolCreation()  WaitForValidPlayer()   SetPlayerProperties()Wait(5000) end end-- startmain(); Save as invincible.lua or whatever in Program Files\Rockstar Games\Grand Theft Auto IV\Alice. EDIT : Remember to delete superman.lua Marcin6 if you want rid of the constant weapons set. Please do that again but , without weapons , but with lot`s of ammo like in superman Quote Share this post Link to post Share on other sites
tigerx 0 Posted December 25, 2008 Please do that again but , without weapons , but with lot`s of ammo like in superman you can change the weapons you get with the superman script. Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 Marcin6 : Delete CallNative("ENABLE_MAX_AMMO_CAP") This Will Give Max Ammo And else PushInt(PLAYER_CHAR) PushInt(Num) PushInt(30000) CallNative("SET_CHAR_AMMO") If You Want Change The Ammo , Change Pushint(30000) Into Number Of Ammo Did You Like Or Delete It if you Want the ammo When You buy Or Get Quote Share this post Link to post Share on other sites
Marcin6 14 Posted December 25, 2008 Marcin6 : Delete CallNative("ENABLE_MAX_AMMO_CAP") This Will Give Max AmmoAnd else PushInt(PLAYER_CHAR) PushInt(Num) PushInt(30000) CallNative("SET_CHAR_AMMO") If You Want Change The Ammo , Change Pushint(30000) Into Number Of Ammo Did You Like Or Delete It if you Want the ammo When You buy Or Get OMG xD I wanna ammo ! But i wan`t to change weapons in game , let`s see now i wan`t AK and then M4 , to change it Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 Save Two Of the weaponspawner.lua and Change GiveWeapon(6) into : GiveWeapon(14) For Ak GiveWeapon(15) For M4 And Did You Change This else PushInt(PLAYER_CHAR) PushInt(Num) PushInt(30000) CallNative("SET_CHAR_AMMO") Or Delete it? Marcin6:Our Nation Is Mirrored! Quote Share this post Link to post Share on other sites
Cogrock 0 Posted December 25, 2008 Would any of you Chaps/Chappets be kind enough to add a list of weapons an their number please. Eg. GiveWeapon(14) For Ak GiveWeapon(15) For M4 Or could you advise on where to look to find the correct wepon numbers. Everytime i try i manage to change the wepons but none of them work. I changed my AK 47 to an M4 and then all my other weapons stopped working Thanks I'd Appretiate some help. Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 There Are Posted There But Here if you wantChance Giveweapon(Num) Num: Giveweapon(num) 1:Baseball bat 2:Pool Cue 3:Knife 4:Grenade 5:Molotov 6:Rocket 7:Glock Pistol 8:don't know yet 9:deagle 10:Shotgun 11:barreta shotgun 12:uzi 13:mp5 14:ak Edit: 15:m4 16:Sniper rifle 17:M401a Sniper 18:rocket launcher Are Your Weapon Info.xml Modded? Quote Share this post Link to post Share on other sites
Cogrock 0 Posted December 25, 2008 (edited) There Are Posted There But Here if you wantChance Giveweapon(Num) Num: Giveweapon(num) 1:Baseball bat 2:Pool Cue 3:Knife 4:Grenade 5:Molotov 6:Rocket 7:Glock Pistol 8:don't know yet 9:deagle 10:Shotgun 11:barreta shotgun 12:uzi 13:mp5 14:ak Edit: 15:m4 16:Sniper rifle 17:M401a Sniper 18:rocket launcher Are Your Weapon Info.xml Modded? No my Weapon.xml isn't modded, i did a clean install for this mod. I'm sure these numbers will be a great help. And i really appretiate you helping me. Thank You Also setting a weapon as 6 is pretty funny. EDIT - I solved the problem with my weapons not working after changing any of the numbers. I just started a new game. Everything works great now. I'd like to extend my greatest thanks to Alexander Blade firstly for this Godly mod. And to aceship for his extra bit of help for the slower people on this forum *cough*ME*cough* Edited December 25, 2008 by Cogrock Quote Share this post Link to post Share on other sites
Marcin6 14 Posted December 25, 2008 LOOK : http://pl.youtube.com/watch?v=Oz3Ua7lE9yw Why weapon Back to AK ? Quote Share this post Link to post Share on other sites
-TRASE- 0 Posted December 25, 2008 LOOK :http://pl.youtube.com/watch?v=Oz3Ua7lE9yw Why weapon Back to AK ? it lounches the script once in a second. remove AK fromn the script Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 Marcin 6 : Use Two Weapon Spawn And Change the second Weapon Spawn Script (iskeypresed(04)) to Another key Cogrock : Look My Avatar , That can be done with the rocket ! Quote Share this post Link to post Share on other sites
Marcin6 14 Posted December 25, 2008 But when i remove this from superman script i don`t have this super ammo Quote Share this post Link to post Share on other sites
aceship 0 Posted December 25, 2008 Add this on the GiveWeapon() CallNative("ENABLE_MAX_AMMO_CAP") Quote Share this post Link to post Share on other sites
Marcin6 14 Posted December 25, 2008 Add this on the GiveWeapon() CallNative("ENABLE_MAX_AMMO_CAP") But i use superman.lua and this line is in this script Quote Share this post Link to post Share on other sites
honza94 0 Posted December 25, 2008 Hello, I have GTA IV retail with patch (gtaiv.exe version 1.0.1.0), WinVista SP1 x86. I copy and rewrite all files as in install notes. Now I can't run GTA IV, is there chance to I run next version of this? When I start GTA IV (after rockstar social club) system show this:(in english program Grand Theft Auto IV stop running. Search resolution of problem. http://img201.imageshack.us/img201/6983/gtaiverrorph0.jpg I reppot this as BUG and when you needed more ingo to find problem i will send you. Quote Share this post Link to post Share on other sites