Skip to content

Commit

Permalink
fix(server): linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Jun 15, 2024
1 parent dae301c commit eae5d78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ end)
RegisterServerEvent('slrn_rolldice:server:random', function(sourceId, dices, sides)
local callerLoc = GetEntityCoords(GetPlayerPed(sourceId))
local tabler = {}
for i=1, dices do
table.insert(tabler, math.random(1, sides))
for i = 1, dices do
tabler[i] = math.random(1, sides)
end
local event = sides == 2 and 'slrn_rolldice:client:flipCoin' or 'slrn_rolldice:client:rollDice'
TriggerClientEvent(event, -1, sourceId, tabler, sides, callerLoc)
Expand Down

0 comments on commit eae5d78

Please sign in to comment.