Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Align the notifications by safe zone size #1

Open
Kristukas1337 opened this issue Sep 19, 2021 · 0 comments
Open

Align the notifications by safe zone size #1

Kristukas1337 opened this issue Sep 19, 2021 · 0 comments

Comments

@Kristukas1337
Copy link

Kristukas1337 commented Sep 19, 2021

Hello, is this possible to align the notifications position by player safezone size? Because i took all of the info needed from client to js, but its not working, but on my hud its working just perfect :D I'm trying to put the needed style on bulletin_container, because i can't find anything else where can i put that style, any help?

JS
this.safezone = safeZoneSize const f = safeZoneSize * 0.5 const tbMargin = window.screen.height * f; const lrMargin = window.screen.width * f; document.getElementById('bulletin_container').style.margin =${tbMargin}px ${lrMargin}px``

client

function AddNotification(data) data.config = Config data.safeZoneSize = 1.0 - GetSafeZoneSize() SendNUIMessage(data); end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant