fivem
fivem copied to clipboard
Improvements for Console Variables
Goal of this PR
This PR has multiple different objectives.
- Unify the Console Variable getters to one common file, fixing the main blocker for GET_CONVAR_FLOAT as was listed in #1255
- Add
GET_CONVAR_FLOATso we can get console variables as floats. - Add a way to listen to Console Variable changes so we don't have to poll for them.
How is this PR achieving the goal
Does everything listen above.
This PR applies to the following area(s)
Server, FiveM, RedM
Successfully tested on
Game builds: N/A
Platforms: Windows
Checklist
- [x] Code compiles and has been tested successfully.
- [x] Code explains itself well and/or is documented.
- [x] My commit message explains what the changes do and what they are for.
- [x] No extra compilation warnings are added by these changes.
Tested, working. Thank you for the contribution.