Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Seemann

Generic GTA 4 documentation

Recommended Posts

Erem

 

Does passing a random RGBA (in a single DWORD) value still work as it did in San Andreas?

I've never modded San Andreas so I can't really say.

 

I just tried creating 20 blips in Alice and used CHANGE_BLIP_COLOUR(blip.a, math.random(0, 65535)) to set each to a random colour in the range 0 - 65535, and each blip was a different shade of blue.

 

I don't know whether that answers your question or not.

Share this post


Link to post
Share on other sites
NTAuthority
I just tried creating 20 blips in Alice and used CHANGE_BLIP_COLOUR(blip.a, math.random(0, 65535)) to set each to a random colour in the range 0 - 65535, and each blip was a different shade of blue.

 

I don't know whether that answers your question or not.

Yep, that's supposed to happen if the support for it is still there. smile.gif Thanks for testing it, I need it for a future IV mod of mine.

Share this post


Link to post
Share on other sites
CheaterNo1

 

I have made a complete list of AWARD_ACHIEVEMENT by comparing the list on Rockstar's site and the ones in the game. I don't want to test it right now but is it possible to cheat the achievements?

Sure it is and 51 isnt "Taking a Liberty", it just continues with TLAD- and TBoGT-achieves

51 TLAD: One Percenter

52 TLAD: The Lost Boy

53 TLAD: Easy Rider

...

65 TBoGT: Gold Star

Share this post


Link to post
Share on other sites
opium_addict

 

__declspec( noinline ) u32 GTA4_GetHandleFromPed( CPool< void* >* pPool, void *Ped ){_asm mov	ecx, pPool;_asm mov	eax, Ped;_asm sub	eax, [ecx];_asm cdq;_asm idiv	dword ptr [ecx+12];_asm mov	edx, eax;_asm mov	eax, [ecx+4];_asm movzx	eax, byte ptr [eax+edx];_asm shl	edx, 8;_asm add	eax, edx;}// ASSEMBLY FUNCTIONS, MAYBE CAN NOT BE A CLASS FUNCTIONCPool< void* >* RiotThread::GetPedPoolNative(){return reinterpret_cast< CPool< void* >* >( *reinterpret_cast< DWORD* >( Game::GetBase() + 0x18A72BC ) );}u32 RiotThread::GetPedCount(){if( GetPedPoolNative() == NULL ) return 0;return GetPedPoolNative()->Count();}b8 RiotThread::GetPedByIndex( int idx, Ped *Out ){if( !Out ) return false;Out->Set( 0 );if( GetPedCount() == 0 ) return false;void *CurrentPedIdx = GetPedPoolNative()->at( idx );if( CurrentPedIdx == NULL ) return false;Out->Set( GTA4_GetHandleFromPed( GetPedPoolNative(), CurrentPedIdx ) );return Out->IsValid();}

 

 

for 1.0.6.0, this will allow you to get a Scripting::Ped from CPed, i didn't know where to post it so i picked here, i could probably link to it from aru's scripthook topic also.

 

Credits: Jenksta, listener, without them it would not have been done

 

CPool is here: http://public.sannybuilder.com/sources/rscio-20090115.rar

Edited by opium_addict

Share this post


Link to post
Share on other sites
Drunk Russian 9

Has anyone found a function for selecting gears? There must be one . . . cryani.gif

Share this post


Link to post
Share on other sites
opium_addict
Has anyone found a function for selecting gears? There must be one . . . cryani.gif

You could probably memory-search for that type of thing, i might later, but if its not a native then it is likely an offset from your CVehicle somewhere

 

If you want just pickup tsearch or whatever, and use a native trainer to "pause" the game (you might even be able to "pause" in SP, with ESC, and itll freeze the gear state)

then search for gear, it is probably likely a single BYTE, WORD or INT (1,2,4 bytes), my bet is on 1 byte since there is always so few of them, anyway, search for the value which is probably 0 (or 1) to GEAR_MAX which is probably 6 or 8 in most vehicles.

Share this post


Link to post
Share on other sites
Drunk Russian 9

I have no clue as to how to go about searching. If you could help t'would be great.

Share this post


Link to post
Share on other sites
spaceeinstein

I'm trying to compile a list of all GXT entries in TBOGT. Only a few tables are completed.

http://spaceeinstein.webs.com/GTATBOGT.text

Does anyone have or can anyone make a full list? Its tough doing all these by hand.

 

Completed tables:

ARN02

CLBPRC1

CLBPRC2

CLBPRC3

CLBPRC4

CLBPRC5

CLBPRC6

CLBPRC7

CLBPRC8

FRI2

MARG2

TONY8

TONY10

Edited by spaceeinstein

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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