Skip to content

Commit

Permalink
tweak: cleanup long written code
Browse files Browse the repository at this point in the history
  • Loading branch information
kanersps committed Jul 17, 2020
1 parent 071c51e commit 1a91919
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ AddEventHandler("redemrp_inventory:LoadItems", function()
local _source = source

TriggerEvent("player:getItems", _source, _source)

end)


AddEventHandler("player:getItems", function(target , src)
local _source
if src ~= nil and src ~= 0 then
_source = tonumber(src)
else
_source = tonumber(source)
end
local _source = tonumber(src or source)

local _target = tonumber(target)
local check = false
Expand Down

0 comments on commit 1a91919

Please sign in to comment.