Is it possible to display a NUI at specific coords?

I want to display a static NUI at specific coords. I don’t know if that makes sense but essentially what I want to do is recreate having 3d text on coords that just stay there, but I want it to be a NUI that I can change the design of, is this possible and if so how can I recreate this?

1 Like

You can use this function to get nui pos from coords:

---@param coords vector3
---@return boolean onScreen, {left: string, top: string}
local function getNuiPosFromCoords(coords)
    if not coords then return false, {} end
    local onScreen, x, y = GetScreenCoordFromWorldCoord(coords.x, coords.y, coords.z + 0.3)
    return onScreen, { left = tostring(x * 100) .. "%", top = tostring(y * 100) .. "%" }
end

Check this resource pedmanager v2, hope it is what you are looking for

2 Likes

Yes this is what I’m looking for thanks