returns added everywhere per crowleys request
This commit is contained in:
1 parent
3e63414973
commit
7e0124f02e
150 files changed
+426
-130
No files matched your search
@@ -207,4 +207,6 @@ Accessibility.getAdjustedColour = function(colourName, returnAsRGB)
|
||||
Prints.Error("Invalid Colour Name^0] [^3"..colourName.."^0")
|
||||
return "#FFFFFF" -- Default to white if the colour name is invalid
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return Accessibility
|
||||
@@ -34,8 +34,6 @@ Clothing.ReloadSkin = function()
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
|
||||
Clothing.UpdateAppearanceBackup = function(data)
|
||||
ClothingBackup = data
|
||||
end
|
||||
@@ -58,4 +56,6 @@ end)
|
||||
|
||||
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
||||
Clothing.ReloadSkin()
|
||||
end)
|
||||
end)
|
||||
|
||||
return Clothing
|
||||
@@ -29,4 +29,6 @@ end)
|
||||
|
||||
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
||||
Clothing.ReloadSkin()
|
||||
end)
|
||||
end)
|
||||
|
||||
return Clothing
|
||||
@@ -161,4 +161,6 @@ if BridgeSharedConfig.DebugLevel >= 1 then
|
||||
end
|
||||
end)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
return Dialogue
|
||||
@@ -26,4 +26,6 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert)
|
||||
local blip = Bridge.Utility.CreateBlip(alert.coords, alert.sprite, alert.color, alert.scale, alert.code, true)
|
||||
Wait(alert.time)
|
||||
Bridge.Utility.RemoveBlip(blip)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Dispatch
|
||||
@@ -8,4 +8,6 @@ RegisterNetEvent("community_bridge:Server:DispatchAlert", function(data)
|
||||
TriggerClientEvent('community_bridge:Client:DispatchAlert', src, data)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
return Dispatch
|
||||
@@ -12,4 +12,6 @@ Dispatch.SendAlert = function(data)
|
||||
blipCoords = data.coords or cache.ped and GetEntityCoords(cache.ped) or { x = 0, y = 0},
|
||||
}
|
||||
exports["bub-mdt"]:CustomAlert(alertData)
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -1,2 +1,4 @@
|
||||
if GetResourceState('bub-mdt') ~= 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
return Dispatch
|
||||
@@ -21,4 +21,6 @@ Dispatch.SendAlert = function(data)
|
||||
radius = 0,
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -1,2 +1,4 @@
|
||||
if GetResourceState('cd_dispatch') ~= 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
return Dispatch
|
||||
@@ -37,4 +37,6 @@ Dispatch.SendAlert = function(data)
|
||||
job = data.jobs,
|
||||
}
|
||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -3,4 +3,6 @@ Dispatch = Dispatch or {}
|
||||
|
||||
RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
||||
exports["lb-tablet"]:AddDispatch(data) -- this has a return value but we dont really have a use for it atm.
|
||||
end)
|
||||
end)
|
||||
|
||||
return Dispatch
|
||||
@@ -15,4 +15,6 @@ Dispatch.SendAlert = function(data)
|
||||
caller = 'Anonymous',
|
||||
coords = data.coords or GetEntityCoords(cache.ped)
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -1,2 +1,4 @@
|
||||
if GetResourceState('linden_outlawalert') ~= 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
return Dispatch
|
||||
@@ -27,4 +27,6 @@ Dispatch.SendAlert = function(data)
|
||||
jobs = data.jobs
|
||||
}
|
||||
exports["ps-dispatch"]:CustomAlert(alertData)
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -1,3 +1,5 @@
|
||||
if GetResourceState('ps-dispatch') ~= 'started' then return end
|
||||
if GetResourceState('lb-tablet') == 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
return Dispatch
|
||||
@@ -35,4 +35,6 @@ Dispatch.SendAlert = function(data)
|
||||
customData.image = image or customData.image
|
||||
TriggerServerEvent('qs-dispatch:server:CreateDispatchCall', customData)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -1,2 +1,4 @@
|
||||
if GetResourceState('qs-dispatch') ~= 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
return Dispatch
|
||||
@@ -11,4 +11,6 @@ Dispatch.SendAlert = function(data)
|
||||
coords = data.coords,
|
||||
}
|
||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -9,4 +9,6 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
||||
duration = data.time,
|
||||
coords = data.coords
|
||||
})
|
||||
end)
|
||||
end)
|
||||
|
||||
return Dispatch
|
||||
@@ -17,4 +17,6 @@ Dispatch.SendAlert = function(data)
|
||||
},
|
||||
jobs = data.jobs or {'police'},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return Dispatch
|
||||
@@ -1,2 +1,4 @@
|
||||
if GetResourceState('tk_dispatch') ~= 'started' then return end
|
||||
Dispatch = Dispatch or {}
|
||||
Dispatch = Dispatch or {}
|
||||
|
||||
return Dispatch
|
||||
@@ -7,4 +7,6 @@ Doorlock = Doorlock or {}
|
||||
---@return string | nil
|
||||
Doorlock.GetClosestDoor = function()
|
||||
return exports["doors_creator"]:getClosestActiveDoor()
|
||||
end
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -16,4 +16,6 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
||||
exports["doors_creator"]:setDoorState(doorID, 0)
|
||||
end
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -10,3 +10,5 @@ Doorlock.GetClosestDoor = function()
|
||||
if not doorData then return end
|
||||
return tostring(doorData.id) or nil
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -15,4 +15,6 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
||||
exports.ox_doorlock:setDoorState(doorID, 0)
|
||||
end
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -20,4 +20,6 @@ Doorlock.GetClosestDoor = function()
|
||||
end
|
||||
end
|
||||
return door
|
||||
end
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -10,4 +10,6 @@ Doorlock = Doorlock or {}
|
||||
Doorlock.ToggleDoorLock = function(doorID, toggle)
|
||||
TriggerClientEvent('qb-doorlock:client:setState', -1, 0, doorID, toggle, false, false, false)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -18,4 +18,6 @@ Doorlock.GetClosestDoor = function()
|
||||
end
|
||||
end
|
||||
return door
|
||||
end
|
||||
end
|
||||
|
||||
return Doorlock
|
||||
@@ -15,4 +15,5 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
||||
exports.rcore_doorlock:changeDoorState(doorID, 1)
|
||||
end
|
||||
return true
|
||||
end
|
||||
end
|
||||
return Doorlock
|
||||
@@ -1,2 +1,3 @@
|
||||
Framework = Framework or {}
|
||||
|
||||
return Framework
|
||||
@@ -133,4 +133,6 @@ RegisterNetEvent('esx:setJob', function(data)
|
||||
PlayerJobGradeName = data.grade_label
|
||||
PlayerJobGradeLevel = data.grade
|
||||
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Framework
|
||||
@@ -350,4 +350,6 @@ Framework.Commands.Add = function(name, help, arguments, argsrequired, callback,
|
||||
help = help,
|
||||
arguments = arguments
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return Framework
|
||||
@@ -175,3 +175,5 @@ RegisterNetEvent('QBCore:Client:OnGangUpdate', function(data)
|
||||
TriggerEvent('community_bridge:Client:OnPlayerGangUpdate', PlayerGangName, PlayerGangLabel, PlayerGangGradeName, PlayerGangGradeLevel)
|
||||
--]]
|
||||
end)
|
||||
|
||||
return Framework
|
||||
@@ -494,3 +494,4 @@ Framework.Commands.Add = function(name, help, arguments, argsrequired, callback,
|
||||
QBCore.Commands.Add(name, help, arguments, argsrequired, callback, permission, ...)
|
||||
end
|
||||
|
||||
return Framework
|
||||
@@ -89,4 +89,6 @@ RegisterNetEvent('QBCore:Client:OnJobUpdate', function(data)
|
||||
PlayerJobGradeName = data.grade.name
|
||||
PlayerJobGradeLevel = data.grade.level
|
||||
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Framework
|
||||
@@ -448,4 +448,6 @@ end)
|
||||
AddEventHandler("playerDropped", function()
|
||||
local src = source
|
||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Framework
|
||||
@@ -21,4 +21,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return SetVehicleFuelLevel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -26,3 +26,5 @@ Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
exports['BigDaddy-Fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
exports['esx-sna-fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -26,4 +26,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports["lc_fuel"]:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['LegacyFuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['okokGasStation']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -27,4 +27,6 @@ Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
local currentFuel = Entity(vehicle).state.fuel
|
||||
Entity(vehicle).state.fuel = currentFuel + fuel
|
||||
return Entity(vehicle).state.fuel
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports["ps-fuel"]:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -25,4 +25,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['Renewed-Fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -26,4 +26,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['ti_fuel']:setFuel(vehicle, fuel, "RON91")
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -26,4 +26,6 @@ end
|
||||
Fuel.SetFuel = function(vehicle, fuel)
|
||||
if not DoesEntityExist(vehicle) then return end
|
||||
return exports['x-fuel']:SetFuel(vehicle, fuel)
|
||||
end
|
||||
end
|
||||
|
||||
return Fuel
|
||||
@@ -22,4 +22,6 @@ end)
|
||||
|
||||
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||
HelpText.HideHelpText()
|
||||
end)
|
||||
end)
|
||||
|
||||
return HelpText
|
||||
@@ -14,4 +14,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function(src)
|
||||
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
||||
end
|
||||
end
|
||||
|
||||
return HelpText
|
||||
@@ -18,4 +18,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function()
|
||||
return TriggerEvent('cd_drawtextui:HideUI')
|
||||
end
|
||||
end
|
||||
|
||||
return HelpText
|
||||
@@ -17,4 +17,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function()
|
||||
return exports['jg-textui']:HideText()
|
||||
end
|
||||
end
|
||||
|
||||
return HelpText
|
||||
@@ -17,4 +17,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function()
|
||||
return exports['lab-HintUI']:Hide()
|
||||
end
|
||||
end
|
||||
|
||||
return HelpText
|
||||
@@ -17,4 +17,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function()
|
||||
return exports['okokTextUI']:Close()
|
||||
end
|
||||
end
|
||||
|
||||
return HelpText
|
||||
@@ -18,4 +18,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
HelpText.HideHelpText = function()
|
||||
return exports.ox_lib:hideTextUI()
|
||||
end
|
||||
end
|
||||
|
||||
return HelpText
|
||||
@@ -1 +1,3 @@
|
||||
Housing = Housing or {}
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
||||
@@ -9,4 +9,6 @@ RegisterNetEvent('community_bridge:Server:_OnPlayerInside', function(src, inside
|
||||
local playerEntity = GetPlayerPed(src)
|
||||
local playerCoords = GetEntityCoords(playerEntity)
|
||||
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Housing
|
||||
@@ -8,4 +8,6 @@ end)
|
||||
|
||||
RegisterNetEvent("Housing:client:DeleteFurnitures", function()
|
||||
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Housing
|
||||
@@ -1,3 +1,5 @@
|
||||
if GetResourceState('bcs-housing') ~= 'started' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
||||
@@ -1,3 +1,5 @@
|
||||
if GetResourceState('esx_property') ~= 'started' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
||||
@@ -10,4 +10,6 @@ end)
|
||||
RegisterNetEvent('esx_property:leave', function(insideId)
|
||||
local src = source
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Housing
|
||||
@@ -1,3 +1,5 @@
|
||||
if GetResourceState('ps-housing') ~= 'started' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
||||
@@ -10,4 +10,6 @@ end)
|
||||
RegisterNetEvent('ps-housing:server:leaveProperty', function(insideId)
|
||||
local src = source
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Housing
|
||||
@@ -1,3 +1,5 @@
|
||||
if GetResourceState('qb-appartments') ~= 'started' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
||||
@@ -6,4 +6,6 @@ RegisterNetEvent('qb-apartments:server:SetInsideMeta', function(house, insideId,
|
||||
local src = source
|
||||
insideId = bool and house .. '-' .. insideId or nil
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Housing
|
||||
@@ -1,3 +1,5 @@
|
||||
if GetResourceState('qb-houses') ~= 'started' then return end
|
||||
|
||||
Housing = Housing or {}
|
||||
Housing = Housing or {}
|
||||
|
||||
return Housing
|
||||
@@ -6,4 +6,6 @@ RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool)
|
||||
local src = source
|
||||
insideId = bool and insideId or nil
|
||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Housing
|
||||
@@ -107,6 +107,9 @@ function Input.Open(title, data, isQBFormat, submitText)
|
||||
return OpenInput(title, data, isQBFormat, submitText)
|
||||
end
|
||||
|
||||
return Input
|
||||
|
||||
|
||||
--[[
|
||||
-- Unit tests
|
||||
local thisIsQB = {
|
||||
|
||||
@@ -40,4 +40,6 @@ Inventory.StripPNG = function(item)
|
||||
item = string.gsub(item, ".png", "")
|
||||
end
|
||||
return item
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -151,4 +151,6 @@ Inventory.StripPNG = function(item)
|
||||
item = string.gsub(item, ".png", "")
|
||||
end
|
||||
return item
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -54,4 +54,6 @@ end
|
||||
RegisterNetEvent('community_bridge:client:codem-inventory:openStash', function(id, data)
|
||||
if source ~= 65535 then return end
|
||||
TriggerServerEvent('codem-inventory:server:openstash', id, data.slots, data.weight, data.label)
|
||||
end)
|
||||
end)
|
||||
|
||||
return Inventory
|
||||
@@ -171,4 +171,6 @@ end
|
||||
-- @param shopGroups table
|
||||
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
||||
return true, print("Unable to Create Shop for codem-inventory, I do not have access to a copy of this inventory to bridge the feature.")
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -61,4 +61,6 @@ Inventory.GetPlayerInventory = function()
|
||||
})
|
||||
end
|
||||
return repackedTable
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -225,4 +225,6 @@ end
|
||||
lib.callback.register('community_bridge:Callback:core_inventory', function(source)
|
||||
local items = core:getItemsList()
|
||||
return items or {}
|
||||
end)
|
||||
end)
|
||||
|
||||
return Inventory
|
||||
@@ -41,4 +41,6 @@ RegisterNetEvent('community_bridge:client:jpr-inventory:openStash', function(id,
|
||||
if source ~= 65535 then return end
|
||||
TriggerEvent("inventory:client:SetCurrentStash", id)
|
||||
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
||||
end)
|
||||
end)
|
||||
|
||||
return Inventory
|
||||
@@ -154,4 +154,6 @@ Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups
|
||||
jpr:CreateShop(repackedShopItems)
|
||||
registeredShops[shopTitle] = true
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -69,3 +69,5 @@ end
|
||||
Inventory.OpenStash = function(id)
|
||||
origin:openInventory('stash', id, { label = id, weight = 400000, slots = 100, })
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -181,3 +181,6 @@ end
|
||||
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
||||
return true, print("Currently runtime shops are not supported in origen_inventory")
|
||||
end
|
||||
|
||||
|
||||
return Inventory
|
||||
@@ -52,4 +52,6 @@ end
|
||||
|
||||
Inventory.OpenShop = function(shopTitle, shopInventory)
|
||||
ox_inventory:openInventory("shop", { type = shopTitle, id = 1 })
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -182,4 +182,6 @@ end
|
||||
---@return table
|
||||
Inventory.GetItem = function(src, item, metadata)
|
||||
return ox_inventory:GetItem(src, item, metadata, false)
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -41,4 +41,6 @@ RegisterNetEvent('community_bridge:client:ps-inventory:openStash', function(id,
|
||||
if source ~= 65535 then return end
|
||||
TriggerEvent('ps-inventory:client:SetCurrentStash', id)
|
||||
TriggerServerEvent('ps-inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
||||
end)
|
||||
end)
|
||||
|
||||
return Inventory
|
||||
@@ -176,4 +176,6 @@ Inventory.CreateShop = function(src, shopTitle, shopInventory, shopCoords, shopG
|
||||
sloth:CreateShop(repackedShopItems)
|
||||
registeredShops[shopTitle] = true
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -41,4 +41,6 @@ RegisterNetEvent('community_bridge:client:qb-inventory:openStash', function(id,
|
||||
if source ~= 65535 then return end
|
||||
TriggerEvent("inventory:client:SetCurrentStash", id)
|
||||
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
||||
end)
|
||||
end)
|
||||
|
||||
return Inventory
|
||||
@@ -202,4 +202,6 @@ Inventory.CreateShop = function(src, shopTitle, shopInventory, shopCoords, shopG
|
||||
v1ShopData[shopTitle] = shopData
|
||||
print("QB-INVENTORY: You are using an outdated version of qb-inventory, please update to the latest version. Stuff will still work but you are using litterally the most exploitable inventory in fivem.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -74,3 +74,5 @@ end
|
||||
Inventory.OpenStash = function(id)
|
||||
quasar:RegisterStash(id, 50, 50000)
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -198,4 +198,6 @@ end
|
||||
-- @param shopGroups table
|
||||
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
||||
return false, print("Currently qs shop is not bridged")
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -70,4 +70,6 @@ end
|
||||
---@return nil
|
||||
Inventory.OpenStash = function(id)
|
||||
tgiann:OpenInventory('stash', id, { maxweight = 400000, slots = 100 })
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -204,4 +204,6 @@ Inventory.GetItem = function(src, item, metadata)
|
||||
item.count = item.amount
|
||||
item.metadata = item.info
|
||||
return item
|
||||
end
|
||||
end
|
||||
|
||||
return Inventory
|
||||
@@ -22,4 +22,6 @@ end
|
||||
---@return boolean
|
||||
Managment.RemoveAccountMoney = function(account, amount)
|
||||
return exports['Renewed-Banking']:removeAccountMoney(account, amount)
|
||||
end
|
||||
end
|
||||
|
||||
return Managment
|
||||
@@ -10,4 +10,6 @@ end
|
||||
|
||||
Managment.RemoveAccountMoney = function(account, amount)
|
||||
return false, print("The resource you are using does not support this function.")
|
||||
end
|
||||
end
|
||||
|
||||
return Managment
|
||||
@@ -22,4 +22,6 @@ end
|
||||
---@return boolean
|
||||
Managment.RemoveAccountMoney = function(account, amount)
|
||||
return exports['okokBanking']:RemoveMoney(account, amount)
|
||||
end
|
||||
end
|
||||
|
||||
return Managment
|
||||
@@ -22,4 +22,6 @@ end
|
||||
---@return boolean
|
||||
Managment.RemoveAccountMoney = function(account, amount)
|
||||
return exports['qb-banking']:RemoveMoney(account, amount)
|
||||
end
|
||||
end
|
||||
|
||||
return Managment
|
||||
@@ -66,3 +66,5 @@ end
|
||||
function Math.Map(value, inMin, inMax, outMin, outMax)
|
||||
return (value - inMin) / (inMax - inMin) * (outMax - outMin) + outMin
|
||||
end
|
||||
|
||||
return Math
|
||||
@@ -23,6 +23,7 @@ RegisterNetEvent('community_bridge:client:MenuCallback', function(_args)
|
||||
onSelect(args)
|
||||
end)
|
||||
|
||||
return Menu
|
||||
|
||||
--[[
|
||||
|
||||
|
||||
@@ -35,4 +35,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
Notify.ShowHelpText = function(message, position)
|
||||
return HelpText.ShowHelpText(message, position)
|
||||
end
|
||||
end
|
||||
|
||||
return Notify
|
||||
@@ -30,4 +30,6 @@ end
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
Notify.HideHelpText = function(src)
|
||||
return HelpText.HideHelpText(src)
|
||||
end
|
||||
end
|
||||
|
||||
return Notify
|
||||
@@ -17,4 +17,6 @@ end
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
return exports['mythic_notify']:SendAlert('inform', message, time)
|
||||
end
|
||||
end
|
||||
|
||||
return Notify
|
||||
@@ -17,4 +17,6 @@ end
|
||||
Notify.SendNotify = function(message, _type, time)
|
||||
time = time or 3000
|
||||
return exports['okokNotify']:Alert('Notification', message, time, _type, false)
|
||||
end
|
||||
end
|
||||
|
||||
return Notify
|
||||
Loaded 100 of 150 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user