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

Move stress from qbx_hud to qbx_core #558

Open
marshular opened this issue Sep 1, 2024 · 2 comments
Open

Move stress from qbx_hud to qbx_core #558

marshular opened this issue Sep 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@marshular
Copy link

The problem

As the title explains: Move stress from qbx_hud to qbx_core

Ideal solution

Move stress functions from qbx_hud to qbx_core.

Alternative solutions

No response

Additional context

No response

@marshular marshular added the enhancement New feature or request label Sep 1, 2024
@qbox-duck qbox-duck bot added this to Issues Sep 1, 2024
@github-project-automation github-project-automation bot moved this to Todo in Issues Sep 1, 2024
@solareon
Copy link
Contributor

solareon commented Sep 1, 2024

You can already manipulate the stress values directly as in the example below. Are you referring to the stress effects like screen blur etc?

local player = exports.qbx_core:GetPlayer(source)
local stress = Player(source).state.stress
player.Functions.SetMetaData('stress', stress + newstress)

@marshular
Copy link
Author

yes, the effects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants