29 lines
837 B
Lua
29 lines
837 B
Lua
-- client/loadouts.lua (STRIP-ONLY for neutrals)
|
|
print("^2[turfwar]^7 client/loadouts.lua LOADED (STRIP-ONLY - shop handles weapons)")
|
|
|
|
local currentGang = 0
|
|
|
|
RegisterNetEvent("turfwar:setFaction", function(gangId)
|
|
currentGang = tonumber(gangId) or 0
|
|
end)
|
|
RegisterNetEvent("turfwar:gangUpdate", function(gangId)
|
|
currentGang = tonumber(gangId) or 0
|
|
end)
|
|
RegisterNetEvent("turfwar:setMyGang", function(gangId)
|
|
currentGang = tonumber(gangId) or 0
|
|
end)
|
|
|
|
RegisterNetEvent("turfwar:stripWeapons", function()
|
|
if currentGang ~= 0 then
|
|
-- only strip neutral
|
|
return
|
|
end
|
|
local ped = PlayerPedId()
|
|
if not ped or ped == 0 then return end
|
|
RemoveAllPedWeapons(ped, true)
|
|
end)
|
|
|
|
RegisterNetEvent("turfwar:applyLoadout", function(loadout)
|
|
-- disabled: shop owns weapons
|
|
end)
|