Jump to content

Render Target


NeXuS™

Recommended Posts

if rT then

local pX, pY, pZ = getElementPosition(localPlayer)

rot = getCameraRotation(localPlayer)

dxSetRenderTarget(rT)

img = dxDrawImageSection(x, y, w, h, (pX+3000)*(1536/6000)-w/2, -(pY+3000)*(1536/6000)-h/2, w, h,"files/radar.png", rot)

dxSetRenderTarget()

dxDrawImage(x, y, w, h, rT)

end

This code is giving me a black screen, can you help me?

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...