I did as in the instructions .But not all for the end dont understand.I convert font to .gfx and what should i do next?
INSTRUCTION ON WHICH I DID:
How to add fonts (FiveM update - May 5th/6th, 2017)
Convert your .ttf to a .swf. You can use swfmill (http://swfmill.org/releases/swfmill-0.3.3-win32.zip44) to do this:
swfmill simple in.xml out.swf
Convert the .swf to .gfx. You need gfxexport.exe for this. We can not tell you where to get this, as itâs illegal to spread - find it on Google.
gfxexport out.swf
Put out.gfx in a stream/ folder in a resource, perhaps rename it.
AND FURTHER I DONT UNDERSTAND WHAT IS MEANT:
Call RegisterFontFile and RegisterFontId from a client script.
Use the registered ID in SetTextFont, instead of one of the gameâs built-in IDs.
That looks like vRP, you donât need to do all that workaround, just go the where the GUI html/css file is located, add a new typeface, find where the font-family for the page is being declared and change it to the one of your liking. If you use a local file for the font donât foget to add to the _resource.lua file the new font file.
If you donât know how to use a custom font on webpages search for: How to use a local font file on my webpage
âŚor something like that, itâs basically a webpage afterall.
-Loading Font Files--
files{
"gui/fonts/GTARussian-Regular.woff"
}
Now one of my issues is I canât seem to find that url for pricedown and also I am not sure if I should also be adding the ttf or woff file itself somewhere.
The paths for files are relative to the location you call them from, just think about it, if you created the fonts file inside the vrp folder, itâs now fonts/Pricedown.woff
If you go inside the gui folder and type the above it will interpret the absolute path as gui/fonts/Pricedown.woff
So you either move your fonts folder inside the gui folder and in _resource.lua you load gui/fonts/Pricedown.woff or you leave it where it is and inside design.css you change the path to ../fonts/Pricedown.woff (where the ../ means âgo back one folderâ).
Viewing from design.css ../fonts/Pricedown.woff = vrp/fonts/Pricedown.woff
hi I am stuck to get my custom font working in the blips display name on the map would appreciate if someone helps me to get this works
here is the register command for the font I have