Skip to content

Commit e747d55

Browse files
committed
add TakeScreenchot offset and function
1 parent dbe41f9 commit e747d55

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

SA-MP API/init.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ local offset = {
3131
fnSetInputMode = {['0_3_7-R1'] = 0x09BD30, ['0_3_7-R3'] = 0x0678A0, ['0_3_DL-R1'] = 0x0A0530};
3232
fnUnlockActorCam = {['0_3_7-R1'] = 0x09BC10, ['0_3_7-R3'] = 0x09FEC0, ['0_3_DL-R1'] = 0x0A0410};
3333
fnUpdateScoreboard = {['0_3_7-R1'] = 0x008A10, ['0_3_7-R3'] = 0x008BA0, ['0_3_DL-R1'] = 0x008C00};
34-
-- fnTakeScreenshot = {['0_3_7-R1'] = 0x070FC0, ['0_3_7-R3'] = , ['0_3_DL-R1'] = 0x075040};
3534
fnSay = {['0_3_7-R1'] = 0x0057F0, ['0_3_7-R3'] = 0x005820, ['0_3_DL-R1'] = 0x005860};
3635
fnSendCmd = {['0_3_7-R1'] = 0x065C60, ['0_3_7-R3'] = 0x069190, ['0_3_DL-R1'] = 0x069340};
3736
fnSendInteriorChange = {['0_3_7-R1'] = 0x005740, ['0_3_7-R3'] = 0x005780, ['0_3_DL-R1'] = 0x0057C0};
3837
fnRequestClass = {['0_3_7-R1'] = 0x0056A0, ['0_3_7-R3'] = 0x0056E0, ['0_3_DL-R1'] = 0x005720};
3938
fnDisableScoreboard = {['0_3_7-R1'] = 0x06A320, ['0_3_7-R3'] = 0x06E270, ['0_3_DL-R1'] = 0x06E410};
4039
fnSetSpecialAction = {['0_3_7-R1'] = 0x0030C0, ['0_3_7-R3'] = 0x0030C0, ['0_3_DL-R1'] = 0x003110};
40+
41+
-- thanks Parazitas from ugbase.eu
42+
fnTakeScreenshot = {['0_3_7-R1'] = 0x070FC0, ['0_3_7-R3'] = 0x12DD3C, ['0_3_DL-R1'] = 0x075040};
4143
};
4244

4345
local define = require( 'SA-MP API.samp.definitions' )
@@ -161,9 +163,9 @@ function module._RegisterClientCommand( cmd, func )
161163
ffi.cast( 'void ( __thiscall * )( void *, char *, CMDPROC )', module.Handle + offset.fnAddChatCmd[module.Version] )( this, cmd, callback )
162164
end
163165

164-
--[[function module.TakeScreenshot()
166+
function module.TakeScreenshot()
165167
ffi.cast( 'void ( __cdecl * )( void )', module.Handle + offset.fnTakeScreenshot[module.Version] )( )
166-
end]]
168+
end
167169

168170
function module.RequestSpawn()
169171
local this = module.Get().pBase.pPools.pPlayer.pLocalPlayer

0 commit comments

Comments
 (0)