Help Create 3D Text without SAMPFUNCS

Jimmy Ciculs

Active member
Joined
Mar 3, 2020
Messages
33
Reaction score
4
Location
?
I want to use 0B44: samp 9@ = create_3d_text but no sampfuncs installed
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
You didn't specify which samp version, so here's 0.3.7 R1
PHP:
void SAMP::CLabelPool::Create(ID nId, const char *szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle) {
 ((void(__thiscall *)(CLabelPool *, ID, const char *, D3DCOLOR, CVector, float, bool, ID, ID))SAMP_ADDROF(0x11C0))(this, nId, szText, color, position, fDrawDistance, bBehindWalls, nAttachedToPlayer, nAttachedToVehicle);
}

Also label pool offset can be found here:
 
Last edited:

Jimmy Ciculs

Active member
Joined
Mar 3, 2020
Messages
33
Reaction score
4
Location
?
You didn't specify which samp version, so here's 0.3.7 R1
PHP:
void SAMP::CLabelPool::Create(ID nId, const char *szText, D3DCOLOR color, CVector position, float fDrawDistance, bool bBehindWalls, ID nAttachedToPlayer, ID nAttachedToVehicle) {
 ((void(__thiscall *)(CLabelPool *, ID, const char *, D3DCOLOR, CVector, float, bool, ID, ID))SAMP_ADDROF(0x11C0))(this, nId, szText, color, position, fDrawDistance, bBehindWalls, nAttachedToPlayer, nAttachedToVehicle);
}

Also label pool offset can be found here:
i want to make a cleo and create an 3dtext, samp 037r1
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
I'm at job so.., i made this using phone:
PHP:
:Create3dLabel
{
    0.3.7 R1
    0AB1: @Create3dLabel 10 ID 224 Text 0@ colour 0xFF00FF00 XYZ 1@ 2@ 3@ DrawDistance 70.0 SeeBehindWalls True AttachedToPlayer -1 AttachedToVehicle -1
}
IF 0AA2: 31@ = "samp.dll"
THEN
    0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET  
    0A8D: 30@ = readMem 30@ sz 4 vp 0
    30@ += 0x3CD // SAMP_PPOOLS_OFFSET         
    0A8D: 30@ = readMem 30@ sz 4 vp 0
    30@ += 0xC // SAMP_PPOOL_LABEL_OFFSET         
    0A8D: 30@ = readMem 30@ sz 4 vp 0

    0A8E: 29@ = 31@ + 0x11C0 // SAMP_CREATE_3D_LABEL_OFFSET

    0AA8: call_function_method 29@ struct 30@ num_params 10 pop 0 AttachedToVehicle 0@ AttachedToPlayer 1@ SeeBehindWalls 2@ DrawDistance 3@ ZYX 6@ 5@ 4@ colour 7@ Text 8@ ID 9@ _Returned: Val 28@
END
0AB2: 0
 

madsinagestr

Active member
Joined
Oct 3, 2022
Messages
27
Reaction score
0
I'm at job so.., i made this using phone:
PHP:
:Create3dLabel
{
    0.3.7 R1
    0AB1: @Create3dLabel 10 ID 224 Text 0@ colour 0xFF00FF00 XYZ 1@ 2@ 3@ DrawDistance 70.0 SeeBehindWalls True AttachedToPlayer -1 AttachedToVehicle -1
}
IF 0AA2: 31@ = "samp.dll"
THEN
    0A8E: 30@ = 31@ + 0x21A0F8 // SAMP_INFO_OFFSET 
    0A8D: 30@ = readMem 30@ sz 4 vp 0
    30@ += 0x3CD // SAMP_PPOOLS_OFFSET        
    0A8D: 30@ = readMem 30@ sz 4 vp 0
    30@ += 0xC // SAMP_PPOOL_LABEL_OFFSET        
    0A8D: 30@ = readMem 30@ sz 4 vp 0

    0A8E: 29@ = 31@ + 0x11C0 // SAMP_CREATE_3D_LABEL_OFFSET

    0AA8: call_function_method 29@ struct 30@ num_params 10 pop 0 AttachedToVehicle 0@ AttachedToPlayer 1@ SeeBehindWalls 2@ DrawDistance 3@ ZYX 6@ 5@ 4@ colour 7@ Text 8@ ID 9@ _Returned: Val 28@
END
0AB2: 0
How to change view distance and can seebehidewall for all 3dtext?
0.3dl
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
How to change view distance and can seebehidewall for all 3dtext?
0.3dl
PHP:
:Create3dLabel
{
    0.3.DL
    0AB1: @Create3dLabel 10 ID 224 Text 0@ colour 0xFF00FF00 XYZ 1@ 2@ 3@ DrawDistance 70.0 SeeBehindWalls True AttachedToPlayer -1 AttachedToVehicle -1
}
IF 0AA2: 31@ = "samp.dll"
THEN
    0A8E: 30@ = 31@ + 0x2ACA24 // SAMP_INFO_OFFSET  
    0A8D: 30@ = readMem 30@ sz 4 vp 0
    30@ += 0x3DE // SAMP_PPOOLS_OFFSET         
    0A8D: 30@ = readMem 30@ sz 4 vp 0
    30@ += 0x1C // SAMP_PPOOL_LABEL_OFFSET         
    0A8D: 30@ = readMem 30@ sz 4 vp 0

    0A8E: 29@ = 31@ + 0x11D0 // SAMP_CREATE_3D_LABEL_OFFSET

    0AA8: call_function_method 29@ struct 30@ num_params 10 pop 0 AttachedToVehicle 0@ AttachedToPlayer 1@ SeeBehindWalls 2@ DrawDistance 3@ ZYX 6@ 5@ 4@ colour 7@ Text 8@ ID 9@ _Returned: Val 28@
END
0AB2: 0
 
Top