altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Add SDK method to get the value of the profiler config option #847

Closed LeonMrBonnie closed 3 years ago

LeonMrBonnie commented 3 years ago

Suggestion

Add a new method to the SDK to get the current value of the profiler option in the server.cfg.

Use cases

Can be used in e.g. the JS module to disable performance warnings.

Describe the solution you'd like

bool alt::ICore::IsProfilerEnabled

Describe alternatives you've considered

Manually reading and parsing the server.cfg to read the value manually.

Additional context

n/a

LeonMrBonnie commented 3 years ago

See #197