tweak(resources/server): Finally remove @ts-ignore as my PR was merged

This commit is contained in:
Taso committed 2021-06-08 12:38:34 -04:00
1 parent f1012958e2
commit 42b2970428
1 file changed
+1 -4
@@ -45,10 +45,7 @@ on('playerDropped', () => {
if (!config.general.enableMultiChar) {
on('onServerResourceStart', async (resource: string) => {
if (resource === GetCurrentResourceName()) {
// Workaround till https://github.com/citizenfx/fivem/pull/682
// is merged
// @ts-ignore
const onlinePlayers: string[] = getPlayers();
const onlinePlayers = getPlayers();
for (const player of onlinePlayers) {
await PlayerService.handleNewPlayerJoined(parseInt(player));
}