Skip to content

Commit

Permalink
refactor(client/api): tonumber model
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 10, 2023
1 parent fcbfac7 commit b3948f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function target.addModel(arr, options)

for i = 1, #arr do
local model = arr[i]
model = type(model) == 'string' and joaat(model) or model
model = tonumber(model) or joaat(model)

if not Models[model] then
Models[model] = {}
Expand All @@ -145,7 +145,7 @@ function target.removeModel(arr, options)

for i = 1, #arr do
local model = arr[i]
model = type(model) == 'string' and joaat(model) or model
model = tonumber(model) or joaat(model)

if Models[model] then
if options then
Expand Down

0 comments on commit b3948f4

Please sign in to comment.