Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (91,853 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. 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

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

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

×

Important Information

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