Tracer
Tracer
### Is your feature request related to a problem? Please describe. Modules in mta are very unclear. Most of them are built very differently and it is difficult to say...
Fixes #2937: Moved `tocolor` into an embedded section. That way it should be faster...?
This PR is a direct response to the #3022 feature which adds new global variable: [`constants`](https://github.com/multitheftauto/mtasa-blue/pull/3039/files#diff-249795227c2ee9f3fb91954f46dd7537e4850ec38ec61eb896d531010bdb87f6R10) and assigns new fields to it: - [ElementType](https://github.com/multitheftauto/mtasa-blue/pull/3039/files#diff-48a934fdd631a5bdfaae26e47688253e269075ff084aeeb96d8ede34eb94b253R10) - [TriggerPriority](https://github.com/multitheftauto/mtasa-blue/pull/3039/files#diff-f1f884dc24bc7971313a71f0291a353aa6c7e2029098e350d20b44d4fd2d3388R10) - [DebugMessageLevels](https://github.com/multitheftauto/mtasa-blue/pull/3039/files#diff-f1f884dc24bc7971313a71f0291a353aa6c7e2029098e350d20b44d4fd2d3388R15) - [KeyState](https://github.com/multitheftauto/mtasa-blue/pull/3039/files#diff-f1f884dc24bc7971313a71f0291a353aa6c7e2029098e350d20b44d4fd2d3388R22)...
Also refactored SharedUtil a little (`WIN32` might not be defined. `_WIN32` will always be defined) Syntax: ~~`table fileListDir ( string path )`~~ `table pathListDir ( string path )` returns table...
The function was bugged; it was never actually resetting ped's voice due to internal mta's logic. Now should be fixed, function returns `true` when the voice was successfully reset, returns...
### Is your feature request related to a problem? Please describe. Following #3304 there should be an event for tracking state changes of all resources. `onResourceLoadStateChange` only triggers for load...
### Is your feature request related to a problem? Please describe. This function would return **all** event handlers for bounded element without restricting it to current resource. Essentially, this function...
I changed most of `#ifdef WIN32` to `#ifdef _WIN32` because `WIN32` was not always defined in some files. `_WIN32` however is always *active*
New events: - `onAccountCreate` (takes 1 parameter: account) - `onAccountRemove` (takes 1 parameter: account)
Modules are kinda limited (and dead really). Upgrading them will remove some limitations, etc. This upgrade **breaks** backwards compatibility due to removed and reformatted functions