CLEO Help [HELP] Textdraw

CLEO related
Status
Not open for further replies.

DjFox

Member
Joined
Mar 29, 2015
Messages
17
Reaction score
1
Hello, i need help please, this mod is not working well it doesn't display vehicle name

Code:
{$CLEO}

const
    FCR_BORDER = 0x4
end

0000: NOP

thread "Ded_Fedot"

if not 33@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 228                                                    
end

30@ = Render.CreateFont("calibri", 10, 5)
SAMP.GetScreenResolution(0@, 1@)
0@ /= 50
1@ = 25

end
end

:infotablo
0B12: 29@ = 29@ XOR 1  
Samp.CmdRet()
 
Last edited:

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
PHP:
30@ = Render.CreateFont("calibri", 10, 5)

while true
    wait 0
    if and
        29@ == 1
        actor.Driving($PLAYER_ACTOR)
    then
        SAMP.GetScreenResolution(0@, 1@) //Make this local and continous, just in-case resolution changes.
        0@ /= 50
        1@ = 250
        0811: 4@ = actor $PLAYER_ACTOR used_car //Get current vehicle handle
        5@ = Car.Model(4@) //Gets vehicle model ID from vehicle handle
        alloc 3@ 64 //allocate some memory for the strings
        alloc 2@ 128 //allocate some memory for the strings
        0ADB: 3@ = car_model 1@ name //Gets vehicle model name from model ID
        format 2@ "Model name: %s" 3@ //Format the string
        Render.DrawText(30@, 2@, 0@, 1@, 0xFFFFFFFF) //Render the text 
        free 2@
        free 3@
    end    
end

Here you go buddy.
 
Status
Not open for further replies.
Top