qbcore-framework / qb-core

FiveM RP Framework Core :muscle:
GNU General Public License v3.0
582 stars 962 forks source link

Fix invalid increment syntax in `GetDutyCount()` and `GetPlayersOnDuty()` #1013

Closed BryceRussell closed 1 year ago

BryceRussell commented 1 year ago

Description

Fix invalid syntax when incrementing count inside GetPlayersOnDuty() and GetDutyCount()

Had a few scripts throwing errors when calling this function, switching to x = x + 1 syntax fixed all the console errors I was receiving

Checklist

Sharkiiie commented 1 year ago

The original syntax is valid. FiveM uses a custom Lua runtime which allows this operator.

BryceRussell commented 1 year ago

I had a some server errors that referenced this file and this fixed seemed to stop the errors. I tried reproducing this again on a fresh server but I couldn't get it to error so I guess it was something to do with my server, my bad!