Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetPlayerHudComponentProperty doesn't work with radar #4009

Open
1 task done
Lord-Henry opened this issue Feb 7, 2025 · 0 comments
Open
1 task done

GetPlayerHudComponentProperty doesn't work with radar #4009

Lord-Henry opened this issue Feb 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Lord-Henry
Copy link
Contributor

Describe the bug

This function doesn't recognize "radar" as a valid HUD Component, it returns false/nil to every property.

Yes, I read the wiki info "Components like crosshair, radar remain unchanged and are not supported by these functions." so the set function is expected to not be supported, but why the get function is not supported? At least the position and size properties would be enough to get.

Steps to reproduce

Run this:

addEventHandler("onClientRender", root, function()
    local px, py = getPlayerHudComponentProperty("radar", "position")
    local w, h = getPlayerHudComponentProperty("radar", "size")
    dxDrawText(tostring(px)..", "..tostring(py).." | "..tostring(w)..", "..tostring(h), 0, 0)
end)

Version

Client and Server: v1.6-release-22894
Windows 10 (64-bit)

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Lord-Henry Lord-Henry added the bug Something isn't working label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant