Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 94ad67f

Browse files
committed
refactor(loadouts): remove non working code
code is terrible, removing it until a later update
1 parent ee57d92 commit 94ad67f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

client.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ local function init()
210210
menu = ('sync_armory:%s:armor'):format(type)
211211
}
212212
end
213+
--[[
213214
if Config.Loadouts then
214215
main[#main + 1] = {
215216
title = 'Loadouts',
@@ -283,6 +284,7 @@ local function init()
283284
end,
284285
}
285286
end
287+
]]
286288
lib.registerContext({
287289
id = ('sync_armory:%s'):format(type),
288290
title = Lang('armory_name'),

server.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ RegisterNetEvent('sync_armory:registerLoadout', function(data)
127127
['@name'] = data.name
128128
})
129129
end)
130-
130+
--[[ ! WIP ! has not been tested. likely non-functional
131131
RegisterNetEvent('sync_armory:getLoadout', function(loadoutId)
132132
local xPlayer = ESX.GetPlayerFromId(source)
133133
local response = MySQL.query.await('SELECT loadout FROM armory WHERE (loadoutId = @loadoutId AND owner = @owner)', {
@@ -155,5 +155,4 @@ lib.callback.register('sync_armory:fetchLoadouts', function(source)
155155
})
156156
return response
157157
end)
158-
159-
158+
]]

0 commit comments

Comments
 (0)