Jimmy Ciculs
Active member
I want to use 0B44: samp 9@ = create_3d_text but no sampfuncs installed
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);
}
i want to make a cleo and create an 3dtext, samp 037r1You 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:
[CLEO] Some snippets
:DeleteColorCodesFromText { 0AC8: 1@ = allocate_memory_size 260 0AB1: @DeleteColorCodesFromText 2 text 0@ memory_to_store_characters_as_text 1@ } 5@ = FALSE // inbracket 0AA7: call_function 0x718690 num_params 1 pop 1 string 0@ _Returned: length 31@ // Gta Strlen FOR 30@ = 0 TO 31@...ugbase.eu
: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?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
: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