issues
search
multitheftauto
/
mtasa-resources
This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
151
stars
151
forks
source link
scoreboard: Further improvements
#407
Closed
ds1-e
closed
1 year ago
ds1-e
commented
1 year ago
Optimised code (replaced
ipairs
to
range loop
s, localized some variables/tables and function; reduced function calls e.g
guiGetScreenSize
was called constantly, although it never changes without a reconnect)
Deleted unused (
cBlack
)/dupped (
MAX_PRIORITY_SLOT
) variables.
Introduced return early in some places to reduce nesting.
Fernando-A-Rocha
commented
1 year ago
Tested, scoreboard functions fine.