nnhieutrung
Member
FONT CONVERTER
We are share tool can help you convert any font to FiveM font. This is FREE and include the tutorial step by step.
You can find:
Hidden link for visitors, to see
Log in or register now.
More Infomation about us
+
Hidden link for visitors, to see
Log in or register now.
+
Hidden link for visitors, to see
Log in or register now.
======================================================
HOW TO USE
======================================================1. Download font (You can download in
Hidden link for visitors, to see
Log in or register now.
)
2. Copy font into folder (The font must be *.ttf)
3. run run.bat and wait the console print Press any key to continue.... Your converted Font is *.gfx
4. copy font into stream. It same addons clothes, map,...
5. Create client.lua and include below code
-- If your font name is Oswald and SourceSansPro
Citizen.CreateThread(function()
RegisterFontFile('Oswald') -- the name of your .gfx, without .gfx
RegisterFontFile('SourceSansPro') -- the name of your .gfx, without .gfx
--[[
If you want to replace the default font, you can enable below code.
AddTextEntry('STRING', "<FONT FACE='OpenSans'>~a~</FONT>")
]]--
end)
6. You can call font like that
OPTION 1
function YourFunction()
font = RegisterFontId("Oswald")
SetTextFont(font)
BeginTextCommandDisplayText('STRING')
AddTextComponentSubstringPlayerName("YOUR TEXT")
end
OPTION 2
function YourFunction()
BeginTextCommandDisplayText('STRING')
AddTextComponentSubstringPlayerName("<FONT FACE='Oswald'>YOUR TEXT</FONT>")
end