diff --git a/client.lua b/client.lua index be53809..e49b24f 100644 --- a/client.lua +++ b/client.lua @@ -27,7 +27,7 @@ local function releaseState(name, force) if not states[name] then return false end if states[name] <= 1 or force then states[name] = nil - if config.states[name]?.onRelease() then + if config.states[name]?.onRelease then config.states[name].onRelease() end return true @@ -38,4 +38,4 @@ local function releaseState(name, force) end exports('SetState', setState) -exports('ReleaseState', releaseState) \ No newline at end of file +exports('ReleaseState', releaseState)