Skip to content

Commit

Permalink
Merge pull request #1 from Bluethefurry/patch-1
Browse files Browse the repository at this point in the history
make sure setting[2] is a float
  • Loading branch information
Jarrrk authored Dec 10, 2018
2 parents acd79e3 + fa20051 commit 017db66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ Citizen.CreateThread(function()

if setting[1] ~= nil and setting[2] ~= nil and tonumber(setting[2]) ~= nil then
if setting[1] ~= 'weather.CycleDuration' then
Citizen.InvokeNative(GetHashKey('SET_VISUAL_SETTING_FLOAT') & 0xFFFFFFFF, setting[1], tonumber(setting[2]))
Citizen.InvokeNative(GetHashKey('SET_VISUAL_SETTING_FLOAT') & 0xFFFFFFFF, setting[1], tonumber(setting[2])+.0)
end
end
end
end
end)
end)

0 comments on commit 017db66

Please sign in to comment.