Jump to content

custom font


SnoopCat

Recommended Posts

hey guys i know this is easy to do but idk is nto working , can someone help me to fix?

local snoopcatfont = dxCreateFont("font.ttf", 18) 
function greetingHandler () 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler ) 
  
local gMe1 = getLocalPlayer() 
local h,w = guiGetScreenSize() 
root = getRootElement() 
marker = createMarker( 173.2109375, -1571.3525390625, 12.695039749146, "checkpoint", 1.5, 0, 255, 255, 0) 
  
function MarkerHit(hitPlayer) 
   if hitPlayer~=gMe1 then return end 
   local vehicle = getPedOccupiedVehicle(hitPlayer) 
   if source==marker then 
      addEventHandler("onClientRender", root, textDrawer) 
      setTimer(deltext, 8000, 1) 
   end 
end 
addEventHandler("onClientMarkerHit", resourceRoot, MarkerHit) 
  
function textDrawer() 
   dxDrawText("Cargando...", h/2.6, w/2, h, w, tocolor(0, 0, 0, 255), 4.05, snoopcatfont) 
   dxDrawText("Cargando...", h/2.6, w/2, h, w, tocolor(255, 255, 255, 255), 4, snoopcatfont) 
end 
  
function deltext() 
   removeEventHandler("onClientRender", root, textDrawer) 
end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...