roby65 Posted October 3, 2007 Share Posted October 3, 2007 i have this code: Actor.Create($ACTOR_PTR,2,#MALE01,$POS_X,$POS_Y,$POS_Z) with a memory hacker, i get the content if $ACTOR_PTR, but it's not a pointer to the actor but a number like "3329".... how can i get actor pointer from scm? Link to comment Share on other sites More sharing options...
Wesser Posted October 3, 2007 Share Posted October 3, 2007 (edited) Hi, I haven't understood your problem and the C++. However you can imitate the original opcode 009A. Bye Bye Edited October 5, 2007 by Wesser 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
Seemann Posted October 4, 2007 Share Posted October 4, 2007 If you want to obtain an actor pointer via its handle, you might use the CLEO opcode: 0A96: $PTR = actor $ACTOR struct Not sure if you need it though. Sanny Builder 3 • SA Memory Handling • OpenIV • gtamodding.com CLEO.li - The CLEO Library - Official site Link to comment Share on other sites More sharing options...
Sacky Posted October 4, 2007 Share Posted October 4, 2007 If your doing C++ i think you can invoke it like this: CActor* (__stdcall* GetActorHandle)(int) = reinterpret_cast<CActor* (__stdcall*)(int)>(0x404910);CVehicle* (__stdcall* GetVehicleHandle)(int) = reinterpret_cast<CVehicle* (__stdcall*)(int)>(0x4048E0);GetActorHandle(3329); untested, but food for thought (note you will have to define the CActor and CVehicle structs yourself, unless all you want is the pointer in which case just change them to a DWORD) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now