Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rootElement = getRootElement()
- local screenWidth, screenHeight = guiGetScreenSize() -- Get the screen resolution
- function createText (hour,minute)
- hour=tostring(hours)
- minute=tostring(minutes)
- local playerX, playerY, playerZ = getElementPosition( getLocalPlayer() ) -- Get player's coordinates.
- minutes=getRealTime()
- hours=getRealTime()
- dxDrawText( minutes, 44, screenHeight-41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "beckett" ) -- Draw Zone Name text shadow.
- dxDrawText( hours, 44, screenHeight-43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "beckett" ) -- Draw Zone Name text.
- end
- function HandleTheRendering()
- addEventHandler("onClientRender",rootElement, createText) -- keep the text visible with onClientRender.
- end
- addEventHandler("onClientResourceStart",rootElement, HandleTheRendering)
- ---------------------------ERROR IN DXDRAWTEXT-----------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement