Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

[GTAIV|REL] A l i c e


Alexander Blade
 Share

  • Replies 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • aceship

    107

  • Alexander Blade

    94

  • Marcin6

    63

Top Posters In This Topic

Recommended Posts

 

The native "DONT_DISPATCH_COPS_FOR_PLAYER" does exactly what you think it would do. You still keep the stars and the flashy lights on the minimap, however no cops come after you. I did run into a road block of 4 (hummers?) and they were hostile, but a few rockets cleared them and no more cops came.

Thanks for that info. BTW, to you and all who are working with ALICE and are experimenting with Natives (teh Natives are restless. BWAHAHAHA), please consider adding your findings to the GTAModding Wiki, in the List of Natives Category, here:

 

LIST OF GTA IV NATIVE FUNCTIONS

 

You can use your GTA.net account (the same one for here, GTAGarage, etc) to add to articles. Only thing, please use the format Seemann established so it stays (mostly) uniform. (If I, the absolute SUCK at Wiki's can work with this Wiki, so can you!) This way it's not just four or five of us doing all the updating. Thanks for all your work! smile.gif

Edited by ceedj

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

They are, but Wiki expands on this, giving information on what the parameters are, and in some cases, what exactly they do. Helpful for all, no? wink.gif

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

That's why he made the request, as you by now know some of the natives, and their parameters, he's asking you (and people like you) to add to the wiki.

 

 

Link to comment
Share on other sites

I get It,But i think i can't, im too busy to help you, sorry

 

And Q

Can You Add New Explosion In ExplosionFx.dat?

If it can tell me ,my weapon made me die ,and i only edit dir_steam explosion

 

And

Can script increase our max health?

I found the cause why you die when explosion caused, because the damage are 500, and our health are 200, so that cause you and instant death

Edited by aceship
Link to comment
Share on other sites

To set nico's health to full you would do a pushint(200) try changing the (200) to a higher value, haven't tried this myself, but I know from direct memory editing, pushing that value higher then 200, will also add more health.

 

 

Link to comment
Share on other sites

 

Converted the Hexdecimal table into usable decimal for everyone's convenience:

 

 

1  	left mouse button2  right mouse button3  control-break processing4  middle mouse button8  backspace key9  tab key18  clear key19  enter key22  shift key23  ctrl key24  alt key25  pause key32  caps lock key39  esc key50  spacebar51  page up key52  page down key53  end key54  home key55  left arrow key56  up arrow key57  right arrow key64  down arrow key65  select key66  print key67  execute key68  print screen key69  ins key70  del key71  help key72  0 key73  1 key80  2 key81  3 key82  4 key83  5 key84  6 key85  7 key86  8 key87  9 key101 a key102 b key103 c key104 d key105 e key112 f key113 g key114 h key115	i key116 j key117 k key118 l key119 m key120 n key121	o key128 p key129	q key130 r key131 s key132	t key133 u key134 v key135 w key136 x key137 y key144 z key150 numeric keypad 0 key151 numeric keypad 1 key152 numeric keypad 2 key153 numeric keypad 3 key256 numeric keypad 4 key257 numeric keypad 5 key258	numeric keypad 6 key259 numeric keypad 7 key260 numeric keypad 8 key261 numeric keypad 9 key262 multiply key263 add key264 separator key265 subtract key272 decimal key273 divide key274 f1 key275 f2 key276 f3 key277 f4 key278 f5 key279	f6 key280 f7 key281 f8 key288 f9 key289 f10 key290 f11 key291 f12 key324 num lock key325 scroll lock key352 left shift key353 right shift key354 left control key355 right control key

 

is this http://www.barcodeman.com/altek/mule/kb102.gif correct to the quoted piece?

Link to comment
Share on other sites

i Try To 200000000000000000000000000000

In SET_CHAR_MAX_HEALTH

SET_CHAR_HEALTH

And

ADD_ARMOUR_TO_CHAR

And Died A few time then crash

Link to comment
Share on other sites

Is anyone else having trouble with CLEAR_WANTED_LEVEL? I have looked at and tried every example posted here. The first one (posted by TRASE) crashes my game to desktop and the rest simply give an error 1. All other natives seem to work fine for me...so far.

Link to comment
Share on other sites

Is anyone else having trouble with CLEAR_WANTED_LEVEL? I have looked at and tried every example posted here. The first one (posted by TRASE) crashes my game to desktop and the rest simply give an error 1. All other natives seem to work fine for me...so far.

Yup , the same GTAIV.exe error

Link to comment
Share on other sites

Maybe You Are Too Much Editing A Script, To Help This

Make A new Lua File, Copy Your Lua To The New Lua , Set nAme , Delete The Old One, And Done,Thats My Script Works

Link to comment
Share on other sites

Is anyone else having trouble with CLEAR_WANTED_LEVEL? I have looked at and tried every example posted here. The first one (posted by TRASE) crashes my game to desktop and the rest simply give an error 1. All other natives seem to work fine for me...so far.

Yup , the same GTAIV.exe error

Running XP pro 64bit edition here...you?

Link to comment
Share on other sites

i Try To 200000000000000000000000000000

In SET_CHAR_MAX_HEALTH

SET_CHAR_HEALTH

And

ADD_ARMOUR_TO_CHAR

And Died A few time then crash

First of all, such a high value, will indeed crash your game, also setting the value higher then 200 will not have any affect.

 

 

Link to comment
Share on other sites

Maybe You Are Too Much Editing A Script, To Help This

Make A new Lua File, Copy Your Lua To The New Lua , Set nAme , Delete The Old One, And Done,Thats My Script Works

Tried that and a hundred other things to no avail. CLEAR_WANTED_LEVEL simply hates me tounge.gif

Link to comment
Share on other sites

Hey !

 

I've an error after some new stuff on my gta ^^'

The game not running ... =/

 

This is my log :

 

-- GTA IV ASI LOADER LOG -- ////-- © Alexander Blade 2008 -- //binkhooked.dll is loaded, address 0x18000000Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800DBB0Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x18009DF0Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800C5F0Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800CB80Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800D5E0Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x18009E00Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800A610Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800C170Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800F150Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800C080Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800C830Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800C420Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800A560Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800C340Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800A630Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800CA50Hooking binkw32 proc named "[email protected]""[email protected]" hooked, address 0x1800BAA0

 

 

 

Someone can help me ?

Link to comment
Share on other sites

Maybe You Are Too Much Editing A Script, To Help This

Make A new Lua File, Copy Your Lua To The New Lua , Set nAme , Delete The Old One, And Done,Thats My Script Works

Tried that and a hundred other things to no avail. CLEAR_WANTED_LEVEL simply hates me tounge.gif

Have you got any other scripts working? I uploaded my script which removes cops using the tab key...this works for me so if it isn't working for you then it isn't to do with the scripts.

 

http://rapidshare.com/files/177689604/Tab_removes_cops.lua

Link to comment
Share on other sites

Wow nice application you made there Alexander Blade.

I haven't worked with CLEO or any of your tools, so I don't know how powerful your app is.

 

Can this be seen as an easy-to-use replacement for ASI, or will LUA never be as powerful as compiled libraries?

 

BTW, the PrintFloatToLog() function, where exactly is this Log? I don't see any values written anywhere in or outside of GTA.

Edited by L0uNGeR
Link to comment
Share on other sites

@L0uNGeR - The log is in your root Grand Theft Auto IV folder, marked as Alice.txt

 

To Alexander (or someone in the know) I need to create a new handle, to wit:

 

 

--global variables PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, X, Y, Z = 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 ReadCoords()wait(5000) PushInt(PLAYER_CHAR) PushFloat(0.0) PushFloat(5.0) PushFloat(0.0) PushVarPtr() PushVarPtr() PushVarPtr() CallNative("GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS") X = GetFloatParam(4) Y = GetFloatParam(5) Z = GetFloatParam(6)endfunction CreateChar()local TESTPED PushFloat(X) PushFloat(Y) PushFloat(Z) PushVarPtr() CallNative("CREATE_RANDOM_CHAR") TESTPED = GetIntParam(4)endfunction main() InitScript()   WaitForPlayerPoolCreation()   WaitForValidPlayer() ReadCoords() CreateChar()Wait(2000)	end

 

 

Endless loop though. Doing something wrong? I think it's in the CreateChar section, since the ReadCoords part works fine. Thoughts?

 

EDIT: I would eventually prefer TESTPED as a global as well, but I think that would go in the top section, right?

 

EDIT2: Ok, no more loop, but my random friend is not showing up. Hmmmmm. More testing! biggrin.gif

 

I DO get a popup dialog box that just has "!!!" in the title and nothing else. If I press Enter/Return, it goes away and the save finishes loading. Odd? dontgetit.gif

 

EDIT3: Ok, there is an error somewhere, getting this in the log:

 

binkhooked.dll is loaded, address 0x18000000

Hooking binkw32 proc named "[email protected]"

"[email protected]" hooked, address 0x1800DBB0

Hooking binkw32 proc named "[email protected]"

"[email protected]" hooked, address 0x18009DF0

Hooking binkw32 proc named "[email protected]"

 

Still playing with it though. I'll figure it out. I think. lol.gif

 

EDIT4: Ok, found the error. This:

 

wait(5000)

 

should be this:

 

Wait(5000)

 

...hahaha, case matters!

 

Still no random ped though. Investigating further. Believe it or not, it IS fun. lol.gif

Edited by ceedj

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

@L0uNGeR - The log is in your root Grand Theft Auto IV folder, marked as Alice.txt

I've checked that file but nothing there...

Link to comment
Share on other sites

You need to have the Alice folder from COPY in your root GTAIV directory, and then put the playercoords.lua file from the Examples folder into the Alice folder. I can confirm it works, since I changed it to the GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS in the lua script, and the Alice.txt file reflected my offset on the Y plane.

I'm actually not against democracy though. I'm against things I think are f*cking stupid. I think this is f*cking stupid. - Sweets

Link to comment
Share on other sites

You need to have the Alice folder from COPY in your root GTAIV directory, and then put the playercoords.lua file from the Examples folder into the Alice folder. I can confirm it works, since I changed it to the GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS in the lua script, and the Alice.txt file reflected my offset on the Y plane.

Thanks, but I know how to install it, it just didn't work.

It works now though, dunno what the problem was...

Link to comment
Share on other sites

With this superman mod, sometimes when i join games there isnt no god mode nor is ther any weapons, but ocasionally there is

 

is there a button i have to press or soemthing to get the weapons to come and the invincibility?

 

because the lua says press int one or something for invincibility but doesnt seem to have much affect

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.