Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. local sW, sH = guiGetScreenSize()
  2. local imageTexture = dxCreateTexture("image.png")
  3. local iW, iH = dxGetMaterialSize(imageTexture)
  4. function renderImage()
  5. dxDrawImage(sW/2 - iW/2, sH/2 - iH/2, iW, iH, imageTexture)
  6. end
  7. addEventHandler("onClientRender", root, renderImage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement