[ COLLECTION OF 0.3.7 - 0.*.* OFFSETS ]

Like before on the 0.3z version, here you can share updated offset's / structures / infos about samp 0.3.7 RC's.

SAMP_INFO_OFFSET - Tested (0.3.7-RC1) (0x688)
Code:
"samp.dll"+0x215B40
Code:
SAMP_INFO_OFFSET + 0x3C8 = RakClientInterface PTR

SAMP_CHAT_INFO_OFFSET - Tested (0.3.7-RC1) (0x688)
Code:
"samp.dll"+0x215B2C
Code:
"samp.dll"+0x62C10 = FUNC_ADDTOCHATWND

cmon kye i'm tired :(

Packet ID's (by 0x688):
Code:
ID_AUTH_KEY = 12
ID_PLAYER_SYNC = 207
ID_AIM_SYNC = 203
ID_VEHICLE_SYNC = 200
ID_STATS_UPDATE = 205
ID_BULLET_SYNC = 206

Structures / Structs
SAMP_INFO - Tested (0.3.7-RC1) (povargek)
Code:
struct stSAMP
{
#pragma pack( 1 )
   uint8_t               byteUnk[0x20];
   char               szIP[257];
   char               szHostname[255];
   void               *unk1;
   uint32_t            ulPort;
   uint32_t            ulMapIcons[99];
   uint32_t            ulConnectTick; // not tested
   int                  iLanMode; // not tested
   int                  iGameState;
   void               *unk3;
   struct stSampSettings   *pSettings;
   void               *pRakClientInterface;
   struct stSAMPPools      *pPools;
};


INFO: You can use them to reverse structs, as there was never a real change in structs after rc's.
 

Ninja FTW

Active member
Joined
Aug 11, 2017
Messages
61
Reaction score
0
Location
Saturn
0.3.8 RC1:

Code:
SAMP_CHAT_INFO_OFFSET 0x26D170 // #define 0.3.8-RC1 
#define SAMP_CHAT_INPUT_INFO_OFFSET 0x26D170 // 0.3.8-RC1 
#define SAMP_KILL_INFO_OFFSET 0x26D178 // 0.3.8-RC1 
#define SAMP_INFO_OFFSET 0x26D184 // 0.3.8-RC1 
#define SAMP_MISC_INFO 0x26D19C // 0.3.8-RC1 
#define SAMP_SCOREBOARD_INFO 0x26D13C // 0.3.8 RC-1


Code:
team registration 0x6FB20

#define SAMP_DIALOG_INFO_OFFSET 0x26D144 
#define HOOK_CLOSEDIALOG 0x76A60
adding message digests 6E560 
syntax: int __cdecl sub_1006E560 (int, char *, char)

Code:
SAMP_FUNC_RESTARTGAME 0xA230 #define 
#define SAMP_FUNC_TOGGLECURSOR 0xA6B00 
#define SAMP_FUNC_DIALOG_SHOW 0x763E0 
#define SAMP_FUNC_GAMETEXT 0xA70C0 
#define SAMP_FUNC_SPAWN 0x3B20 
#define SAMP_FUNC_REQUEST_SPAWN 0x3A70 
#define SAMP_FUNC_NAMECHANGE 0xB490
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
maybe someone will need it, i needed and i had to search them by myself via cheat engine and it took something to understand how to use this shit :/

cped + 0x634 = ammo in clip [m4]
cped + 0x618 = ammo in clip [tec9]

what can you do with this things? i did my own auto fast reload system, the standard one sucks
 

AR3S

Active member
Joined
Apr 7, 2016
Messages
41
Reaction score
0
0.3.7 R2

Code:
CChatWindowPtr: dwSAMPAddr + 0x21A0EC
(SampBaseAddr + CNetGameAddr) + 0x3C1 = SettingsPtr
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
doroftel said:
maybe someone will need it, i needed and i had to search them by myself via cheat engine and it took something to understand how to use this shit :/

cped + 0x634 = ammo in clip [m4]
cped + 0x618 = ammo in clip [tec9]

what can you do with this things? i did my own auto fast reload system, the standard one sucks

That's not a samp.dll offset tho
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
0.3 DL - https://github.com/BlastHackNet/mod_s0beit_sa/blob/samp-dl/src/samp.h
 

luxdav

Active member
Joined
Sep 17, 2014
Messages
45
Reaction score
5
SAMP 0.3.7 R2

Some of my exported names of my idb:


Code:
CActorPed::ApplyCommandTask               100A8A40 
CActorPed::ClearAllWeapons_maybe          100A6AA0 
CActorPed::DestroyFollowPedTask           100A8A90 
CActorPed::HasHandsUp                     100A75F0 
CActorPed::HoldItem                       100A7650 
CCmdWindow::Enable                        100658B0 
CCmdWindow::ProcessInput                  10065E00 
CDeathWindow::CreateFonts_maybe           10066580 
CDeathWindow::Draw                        10066710 
CGame::DisplayGameText                    1009C370 
CGame::DisplayHud                         1009D3C0 
CGame::DrawGangZone                       1009CA90 
CGame::EnableStuntBonus                   1009CB90 
CGame::ForceFrameLimiterOn                1009C230 
CGame::GetLocalMoney                      1009C5F0 
CGame::GetWeaponInfo                      1009CA30 
CGame::GetWeaponName                      1009C600 
CGame::GetWorldTime                       1009C170 
CGame::InitGame                           1009BF70 
CGame::RequestModel                       1009C0D0 
CGame::RestartEverything                  1009CA00 
CGame::SetGameTextCount                   1009CA80 
CGame::SetGravity                         1009CA50 
CGame::SetMaxStats                        1009C270 
CGame::SetWantedLevel                     1009CA70 
CGame::SetWorldTime                       1009C140 
CGame::SetWorldWeather                    1009C1D0 
CGame::StartGame                          1009BFC0 
CGame::ToggleCursor                       1009BDD0 
CGame::ToggleRadar                        1009C350 
CGame::ToggleThePassingOfTime             1009CAB0 
CGameShutdownHook                         1009EEA0 
CLocalPlayer::HandleClassSelection        10003EE0 
CLocalPlayer::HandleClassSelectionOutcome 10003F30 
CLocalPlayer::Process                     10007250 
CLocalPlayer::ProcessInCarWorldBounds     10003E20 
CLocalPlayer::ProcessOnFootWorldBounds    10003DC0 
CLocalPlayer::ProcessSpectating           100062E0 
CLocalPlayer::SendStatsUpdate             10005AD0 
CLocalPlayer::SendWastedNotification      100055E0 
CLocalPlayer::Spawn                       10003AE0 
CMenu::Show                               100A2760 
CNetGame::Packet_AimSync                  10009750 
CNetGame::Packet_VehicleSync              1000A510 
CNetGame::ShutdownForGameModeRestart      1000A050 
CNetGame::UpdateNetwork_maybe             1000AD60 
CNetStats:Draw                            1005D330 
CPed_Render_Hook                          1009F230 
CPed_Say_Hook                             1009F260 
CPlayerBars::Begin                        100690A0 
CPlayerPed::GetGtaVehicle_maybe           100A6A90 
CPlayerPed::GetMatrix_maybe               1009A1F0 
CPlayerPed::GiveWeapon                    100AA230 
CPlayerPed::IsInVehicle                   100A6900 
CPlayerPed::SetDead_maybe                 100AAA70 
CPlayerPed::SetInitialState               100A6660 
CPlayerPed::SetModelIndex                 100AA9F0 
CPlayerPed_ProcessCollision_Hook          1009F4F0 
CPlayerPed_ProcessControl_Hook_prob       1009DDD0 
CProjectile_Update_Hook                   1009F380 
CRemotePlayer::StateChange                10012C10 
CSprite2D                                 100AFA60 
CTrain_ProcessControl_Derailment          1009F1A0 
CVehicle::GetVehicleSubtype               100AFD40 
CVehicle::UpdateDamageStatus              100B1740 
CVehiclePool::FindIDFromGtaPtr            1001B180 
CVehiclePool::NotifyVehicleDeath          1001B820 
CWeapon_FireCamera_Hook                   1009F170 
CWeapon__Satchel__Activate_Hook           1009F3C0 
CallRwRenderStateSet                      100B2A20
 

luxdav

Active member
Joined
Sep 17, 2014
Messages
45
Reaction score
5
Code:
samp.dll+1BBFD: 1, turnEveryEngineOn, 0, normal mode (byte) // 0.3.7 R2
 

Evgenii

New member
Joined
May 31, 2017
Messages
1
Reaction score
0
luxdav said:
Code:
samp.dll+1BBFD: 1, turnEveryEngineOn, 0, normal mode (byte) // 0.3.7 R2

please, 0.3.7 nop's "disable weapon data"  memory adress
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Evgenii said:
please, 0.3.7 nop's "disable weapon data"  memory adress

[attachment=5561]  type /wpdata
 

Attachments

  • Weapon Data.cs
    17.9 KB · Views: 19

Evgenii

New member
Joined
May 31, 2017
Messages
1
Reaction score
0
0.3z sampPatch[] = "Disable weapon data"    &0 0 0x5660 "" "C3" 
0.3.7 sampPatch[] = "Disable weapon data"    &0 0 0x???? "" "??"
 

Evgenii

New member
Joined
May 31, 2017
Messages
1
Reaction score
0
0B36 said:
Found some for 0.3.7-R2 - > http://forum.sa-mp.com/showthread.php?t=641818

Code:
FUNC_SAMP_SHOWDIALOG: samp.dll+fc480000
FUNC_SAMP_ADDTOCHATWND: samp.dll+645f0
FUNC_PRINTCHAT: samp.dll+640e0
FUNC_SAMP_PLAYAUDIOSTR: samp.dll+62e70
FUNC_SAMP_STOPAUDIOSTR: samp.dll+62a70
FUNC_SAMP_SENDCMD: samp.dll+65d30
FUNC_SAMP_SENDSAY: samp.dll+57e0
FUNC_SAMP_SHOWGAMETEXT: samp.dll+9c370
FUNC_UPDATESCOREBOARD: samp.dll+8a20

0x688 said:
Code:
CGame::ToggleCursor                             =samp.dll+0x9BDD0
CLocalPlayer::SendWastedNotification            =samp.dll+0x055E0
CVehiclePool::NotifyVehicleDeath                =samp.dll+0x1B820
CCmdWindow::SendToServer                        =samp.dll+0x65D30
CNetGame::Packet_AimSync                        =samp.dll+0x09750
CNetGame::Packet_VehicleSync                    =samp.dll+0x0A510
RequestScoreboardUpdate                         =samp.dll+0x08A20
CChatWindow::AddToChatWindowBuffer              =samp.dll+0x640E0
CCmdWindow::Enable                              =samp.dll+0x658B0
HandleRPCPacket                                 =samp.dll+0x373D0
RakClient::Receive                              =samp.dll+0x31260
RakPeer::RunUpdateCycle                         =samp.dll+0x3DA40
CChatWindow::AddDebugMessage                    =samp.dll+0x645F0
CChatWindow::AddInfoMessage                     =samp.dll+0x64570
CPlayerBars::Begin                              =samp.dll+0x690A0
CVehicle::UpdateDamageStatus                    =samp.dll+0xB1740
RakPeer::Receiv                                =samp.dll+0x3D5C0
RakPeer::Send                                   =samp.dll+0x389C0
ReceiveIgnoreRPC                                =samp.dll+0x3CE80
ShowDialog                                      =samp.dll+0x6BA70
CVehiclePool::FindIDFromGtaPtr                  =samp.dll+0x1B182
Code:
CLASS_SCOREBOARD = samp.dll+0x21A0BC
CLASS_CMDWINDOW = samp.dll+0x21A0F0
CLASS_CPLAYERBARS = samp.dll+0x12C934
CLASS_CDIALOGSMTH = samp.dll+0x21A0B8
CLASS_CNETGAME = samp.dll+0x21A100

0.3.7-R2 useless IK but fkutoo
address nop's disable player data and disable vehicle data
 

imring

Member
Joined
Jul 14, 2018
Messages
6
Reaction score
3
Location
Zaporozhye, Ukraine
0.3.DL-R1.
Code:
SAMP_DIALOG_INFO = samp.dll + 0x2AC9E0
SAMP_FUNC_SHOWDIALOG = samp.dll + 0x6FA50
NOP_SHOW_DIALOG = samp.dll + 0xF9C0
 

Olcay

Active member
Joined
Dec 1, 2014
Messages
31
Reaction score
0
Code:
ID_WEAPON_SYNC = 204
ID_UNOCCUPIED_SYNC = 209
ID_TRAILER_SYNC = 210
ID_PASSENGER_SYNC = 211


Not by Me (Quote)
 

imring

Member
Joined
Jul 14, 2018
Messages
6
Reaction score
3
Location
Zaporozhye, Ukraine
0.3.7-R3
C++:
#define SAMP_DIALOG_INFO                                 0x26E898
#define SAMP_CHAT_INFO_OFFSET                            0x26E8C8
#define SAMP_KILL_INFO_OFFSET                            0x26E8D0
#define SAMP_MISC_INFO                                   0x26E8F4
#define SAMP_SCOREBOARD_INFO                             0x26E894

#define SAMP_FUNC_ADDTOCHATWND                           0x67460
#define SAMP_FUNC_WRITECHATLOG                           0x67050
#define SAMP_FUNC_SHOWDIALOG                             0x6F8C0
#define SAMP_FUNC_ADDTODEATHWND                          0x69F40 // 0x69E60
#define SAMP_FUNC_TOGGLECURSOR                           0x9FFE0
#define SAMP_FUNC_DISABLESCOREBOARD                      0x6E270
 
Last edited:

imring

Member
Joined
Jul 14, 2018
Messages
6
Reaction score
3
Location
Zaporozhye, Ukraine
0.3.7-R3
C++:
#define SAMP_COLOR_OFFSET                         0x151578

#define SAMP_FUNC_SAY                             0x5820
#define SAMP_FUNC_ADDCLIENTCMD                    0x69000
#define SAMP_FUNC_SENDINTERIOR                    0x5780
#define SAMP_FUNC_REQUEST_CLASS                   0x56E0
#define SAMP_FUNC_REQUEST_SPAWN                   0x3A20

#pragma pack(push, 1)
struct stPlayerPool
{
    DWORD ulMaxPlayerID;
    struct stRemotePlayer *pRemotePlayer[1004];
    int iIsListed[1004];
    BOOL bSavedCheckCollision[1004];
    int iLocalPlayerPing;
    int iLocalPlayerScore;
    WORD sLocalPlayerID;
    void *pVTBL_txtHandler;
    std::string strLocalPlayerName;
    struct stLocalPlayer *pLocalPlayer;
};
#pragma pack(pop)
 

JegaTurn

Active member
Joined
Nov 7, 2017
Messages
27
Reaction score
0
0.3.7-R3
C++:
#define SAMP_COLOR_OFFSET                         0x151578[/FONT]

[FONT=courier new]#define SAMP_FUNC_SAY                             0x5820
#define SAMP_FUNC_ADDCLIENTCMD                    0x69000
#define SAMP_FUNC_SENDINTERIOR                    0x5780
#define SAMP_FUNC_REQUEST_CLASS                   0x56E0
#define SAMP_FUNC_REQUEST_SPAWN                   0x3A20[/FONT]

[FONT=courier new]#pragma pack(push, 1)
struct stPlayerPool
{
    DWORD ulMaxPlayerID;
    struct stRemotePlayer *pRemotePlayer[1004];
    int iIsListed[1004];
    BOOL bSavedCheckCollision[1004];
    int iLocalPlayerPing;
    int iLocalPlayerScore;
    WORD sLocalPlayerID;
    void *pVTBL_txtHandler;
    std::string strLocalPlayerName;
    struct stLocalPlayer *pLocalPlayer;
};
#pragma pack(pop)
Do you know what memory address and value to NOP SetPlayerHealth in 0.3.7-R3? Thanks
 
Top