Jump to content

[HELP] 3DText Resources


Reaper

Recommended Posts

This code may help, you will have to modify it to fit your script, however this is a basic layout of how you want it.

local x,y,z = getElementPosition(marker)
local sx,sy = getScreenFromWorldPosition(x-2,y,z+1)
local sw,sh = getScreenFromWorldPosition(x+2,3,z+1)-- 3 will be your text height.

addEventHandler('onClientRender',root,function()
    dxDrawText('Marker Text',sx,sy,sw,sh)
end)

Hopefully this has helped you, have a nice day.

  • Like 1
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...