Jump to content

patriot

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by patriot

  1. local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) local myFont = nil function createText ( ) local playerX, playerY, playerZ = getElementPosition ( localPlayer ) -- Get our player's coordinates. local playerZoneName = getZoneName ( playerX, playerY, playerZ ) -- Get name of the zone the player is in. myFont = dxCreateFont( "futurebq.ttf", 20 ) -- Draw zone name text's shadow. if myFont then dxDrawText (playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, myFont ) -- Draw zone name text. dxDrawText ( playerZoneName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, myFont ) else dxDrawText ( "failed to import font", 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) end end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering ) The "futurebq.ttf" is simply located at the same resource directory. Not sure why it isn't working. (myFont returns false)
  2. Hi, I'd like to know if there is any way to detect whether the vehicle is getting shot at it's front or rear side, or anything that can help me. (Generally, I want to detect if the vehicle's engine is getting shot at) Thanks.
  3. I think it's the first one. Thank you very much!
  4. None of them. I will use this, but first I'll have to figrue out what's the name of this font.
  5. Is this just Tahoma Bold? I am pretty sure that not, because the "t" is not the same.
  6. Hello, I am looking for the name of the 1st font: This picture was taken from SA-MP wiki, though I could not track any thing about this font in the MTA wiki. I am looking for this font's name ages, and I would really appriciate some help. (You can also see the font here, top left block)
×
×
  • Create New...