SnoopCat Posted December 31, 2012 Share Posted December 31, 2012 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
Castillo Posted December 31, 2012 Share Posted December 31, 2012 Do you have the font on the meta.xml? is the font valid? Link to comment
SnoopCat Posted December 31, 2012 Author Share Posted December 31, 2012 (edited) solved Edited December 31, 2012 by Guest Link to comment
Castillo Posted December 31, 2012 Share Posted December 31, 2012 I don't understand what do you mean, the problem is with the custom font or what? you didn't really explain. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now