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

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      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. GTA San Andreas

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

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

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. 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. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. 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

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

Generic GTA 4 documentation


Seemann
 Share

Recommended Posts

 

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.

Link to comment
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.

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

  • 4 weeks later...

 

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

Link to comment
Share on other sites

  • 2 weeks later...
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
Link to comment
Share on other sites

Drunk Russian 9

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

Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
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
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.