mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
19272bc3e8c18b04e5bf13d4e576a7184bbe9f89
TranslateCap returned the result of gsub directly, and gsub returns the string plus the number of substitutions. Whenever TranslateCap is the last argument of a call, that count is passed along as an extra argument. The common case is showNotification(msg, notifyType, ...), which is called with just the message in about 49 places in the core. Those all pass notifyType = 1 instead of nil, so the notification is rendered with a numeric type rather than the intended default. 71 call sites in total have TranslateCap in trailing position. Wrapping the call in parentheses truncates it to one value. The string itself is unchanged, and nothing reads the second value.
ESX Legacy
Discord - Website - Documentation
Want more resources? You can browse the Cfx.re Releases board for more!
ESX is the leading framework, trusted by over 12,000 communities to provide the highest quality roleplay servers on FiveM
💗 Supporters
Interested in helping us? Take a look at our patreon
| We would like to sincerely thank the following donors who helped fund the development of ESX. |
|---|
| Mohamad Buhamad - Michael Hein - RoadToSix - Montree Narathong |
| Saydoon - Muhannad alyamani - iSentrie - Wecity - Samuel Nicol |
| Kyle McShea - Artin - Mathias Christoffersen - Jaylan Yilmaz - Callum |
| CONGRESS KW - Michael Hein - Smery sitbon - daZepelin - CMF Community |
Description
Languages
JavaScript
62.3%
Lua
34.8%
TypeScript
1.2%
HTML
0.8%
CSS
0.7%
Other
0.2%