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")
|
Prints.Error("Invalid Colour Name^0] [^3"..colourName.."^0")
|
||||||
return "#FFFFFF" -- Default to white if the colour name is invalid
|
return "#FFFFFF" -- Default to white if the colour name is invalid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Accessibility
|
||||||
@@ -34,8 +34,6 @@ Clothing.ReloadSkin = function()
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Clothing.UpdateAppearanceBackup = function(data)
|
Clothing.UpdateAppearanceBackup = function(data)
|
||||||
ClothingBackup = data
|
ClothingBackup = data
|
||||||
end
|
end
|
||||||
@@ -58,4 +56,6 @@ end)
|
|||||||
|
|
||||||
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
||||||
Clothing.ReloadSkin()
|
Clothing.ReloadSkin()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Clothing
|
||||||
@@ -29,4 +29,6 @@ end)
|
|||||||
|
|
||||||
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
||||||
Clothing.ReloadSkin()
|
Clothing.ReloadSkin()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Clothing
|
||||||
@@ -161,4 +161,6 @@ if BridgeSharedConfig.DebugLevel >= 1 then
|
|||||||
end
|
end
|
||||||
end)
|
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)
|
local blip = Bridge.Utility.CreateBlip(alert.coords, alert.sprite, alert.color, alert.scale, alert.code, true)
|
||||||
Wait(alert.time)
|
Wait(alert.time)
|
||||||
Bridge.Utility.RemoveBlip(blip)
|
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)
|
TriggerClientEvent('community_bridge:Client:DispatchAlert', src, data)
|
||||||
end
|
end
|
||||||
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},
|
blipCoords = data.coords or cache.ped and GetEntityCoords(cache.ped) or { x = 0, y = 0},
|
||||||
}
|
}
|
||||||
exports["bub-mdt"]:CustomAlert(alertData)
|
exports["bub-mdt"]:CustomAlert(alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
if GetResourceState('bub-mdt') ~= 'started' then return end
|
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,
|
radius = 0,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
if GetResourceState('cd_dispatch') ~= 'started' then return end
|
if GetResourceState('cd_dispatch') ~= 'started' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -37,4 +37,6 @@ Dispatch.SendAlert = function(data)
|
|||||||
job = data.jobs,
|
job = data.jobs,
|
||||||
}
|
}
|
||||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
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)
|
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.
|
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',
|
caller = 'Anonymous',
|
||||||
coords = data.coords or GetEntityCoords(cache.ped)
|
coords = data.coords or GetEntityCoords(cache.ped)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
if GetResourceState('linden_outlawalert') ~= 'started' then return end
|
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
|
jobs = data.jobs
|
||||||
}
|
}
|
||||||
exports["ps-dispatch"]:CustomAlert(alertData)
|
exports["ps-dispatch"]:CustomAlert(alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
if GetResourceState('ps-dispatch') ~= 'started' then return end
|
if GetResourceState('ps-dispatch') ~= 'started' then return end
|
||||||
if GetResourceState('lb-tablet') == 'started' then return end
|
if GetResourceState('lb-tablet') == 'started' then return end
|
||||||
Dispatch = Dispatch or {}
|
Dispatch = Dispatch or {}
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -35,4 +35,6 @@ Dispatch.SendAlert = function(data)
|
|||||||
customData.image = image or customData.image
|
customData.image = image or customData.image
|
||||||
TriggerServerEvent('qs-dispatch:server:CreateDispatchCall', customData)
|
TriggerServerEvent('qs-dispatch:server:CreateDispatchCall', customData)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
if GetResourceState('qs-dispatch') ~= 'started' then return end
|
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,
|
coords = data.coords,
|
||||||
}
|
}
|
||||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
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,
|
duration = data.time,
|
||||||
coords = data.coords
|
coords = data.coords
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -17,4 +17,6 @@ Dispatch.SendAlert = function(data)
|
|||||||
},
|
},
|
||||||
jobs = data.jobs or {'police'},
|
jobs = data.jobs or {'police'},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
if GetResourceState('tk_dispatch') ~= 'started' then return end
|
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
|
---@return string | nil
|
||||||
Doorlock.GetClosestDoor = function()
|
Doorlock.GetClosestDoor = function()
|
||||||
return exports["doors_creator"]:getClosestActiveDoor()
|
return exports["doors_creator"]:getClosestActiveDoor()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -16,4 +16,6 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
exports["doors_creator"]:setDoorState(doorID, 0)
|
exports["doors_creator"]:setDoorState(doorID, 0)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -10,3 +10,5 @@ Doorlock.GetClosestDoor = function()
|
|||||||
if not doorData then return end
|
if not doorData then return end
|
||||||
return tostring(doorData.id) or nil
|
return tostring(doorData.id) or nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -15,4 +15,6 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
exports.ox_doorlock:setDoorState(doorID, 0)
|
exports.ox_doorlock:setDoorState(doorID, 0)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -20,4 +20,6 @@ Doorlock.GetClosestDoor = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return door
|
return door
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -10,4 +10,6 @@ Doorlock = Doorlock or {}
|
|||||||
Doorlock.ToggleDoorLock = function(doorID, toggle)
|
Doorlock.ToggleDoorLock = function(doorID, toggle)
|
||||||
TriggerClientEvent('qb-doorlock:client:setState', -1, 0, doorID, toggle, false, false, false)
|
TriggerClientEvent('qb-doorlock:client:setState', -1, 0, doorID, toggle, false, false, false)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -18,4 +18,6 @@ Doorlock.GetClosestDoor = function()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
return door
|
return door
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -15,4 +15,5 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
exports.rcore_doorlock:changeDoorState(doorID, 1)
|
exports.rcore_doorlock:changeDoorState(doorID, 1)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
return Doorlock
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
Framework = Framework or {}
|
Framework = Framework or {}
|
||||||
|
|
||||||
|
return Framework
|
||||||
@@ -133,4 +133,6 @@ RegisterNetEvent('esx:setJob', function(data)
|
|||||||
PlayerJobGradeName = data.grade_label
|
PlayerJobGradeName = data.grade_label
|
||||||
PlayerJobGradeLevel = data.grade
|
PlayerJobGradeLevel = data.grade
|
||||||
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
|
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,
|
help = help,
|
||||||
arguments = arguments
|
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)
|
TriggerEvent('community_bridge:Client:OnPlayerGangUpdate', PlayerGangName, PlayerGangLabel, PlayerGangGradeName, PlayerGangGradeLevel)
|
||||||
--]]
|
--]]
|
||||||
end)
|
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, ...)
|
QBCore.Commands.Add(name, help, arguments, argsrequired, callback, permission, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Framework
|
||||||
@@ -89,4 +89,6 @@ RegisterNetEvent('QBCore:Client:OnJobUpdate', function(data)
|
|||||||
PlayerJobGradeName = data.grade.name
|
PlayerJobGradeName = data.grade.name
|
||||||
PlayerJobGradeLevel = data.grade.level
|
PlayerJobGradeLevel = data.grade.level
|
||||||
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
|
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Framework
|
||||||
@@ -448,4 +448,6 @@ end)
|
|||||||
AddEventHandler("playerDropped", function()
|
AddEventHandler("playerDropped", function()
|
||||||
local src = source
|
local src = source
|
||||||
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Framework
|
||||||
@@ -21,4 +21,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return SetVehicleFuelLevel(vehicle, fuel)
|
return SetVehicleFuelLevel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -26,3 +26,5 @@ Fuel.SetFuel = function(vehicle, fuel)
|
|||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
exports['BigDaddy-Fuel']:SetFuel(vehicle, fuel)
|
exports['BigDaddy-Fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
|
return exports['cdn-fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
exports['esx-sna-fuel']:SetFuel(vehicle, fuel)
|
exports['esx-sna-fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -26,4 +26,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports["lc_fuel"]:SetFuel(vehicle, fuel)
|
return exports["lc_fuel"]:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['LegacyFuel']:SetFuel(vehicle, fuel)
|
return exports['LegacyFuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['okokGasStation']:SetFuel(vehicle, fuel)
|
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
|
local currentFuel = Entity(vehicle).state.fuel
|
||||||
Entity(vehicle).state.fuel = currentFuel + fuel
|
Entity(vehicle).state.fuel = currentFuel + fuel
|
||||||
return Entity(vehicle).state.fuel
|
return Entity(vehicle).state.fuel
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports["ps-fuel"]:SetFuel(vehicle, fuel)
|
return exports["ps-fuel"]:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
|
return exports['qs-fuelstations']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -25,4 +25,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel, type)
|
Fuel.SetFuel = function(vehicle, fuel, type)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['Renewed-Fuel']:SetFuel(vehicle, fuel)
|
return exports['Renewed-Fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -26,4 +26,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['ti_fuel']:setFuel(vehicle, fuel, "RON91")
|
return exports['ti_fuel']:setFuel(vehicle, fuel, "RON91")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -26,4 +26,6 @@ end
|
|||||||
Fuel.SetFuel = function(vehicle, fuel)
|
Fuel.SetFuel = function(vehicle, fuel)
|
||||||
if not DoesEntityExist(vehicle) then return end
|
if not DoesEntityExist(vehicle) then return end
|
||||||
return exports['x-fuel']:SetFuel(vehicle, fuel)
|
return exports['x-fuel']:SetFuel(vehicle, fuel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Fuel
|
||||||
@@ -22,4 +22,6 @@ end)
|
|||||||
|
|
||||||
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||||
HelpText.HideHelpText()
|
HelpText.HideHelpText()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -14,4 +14,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.HideHelpText = function(src)
|
HelpText.HideHelpText = function(src)
|
||||||
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -18,4 +18,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return TriggerEvent('cd_drawtextui:HideUI')
|
return TriggerEvent('cd_drawtextui:HideUI')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -17,4 +17,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports['jg-textui']:HideText()
|
return exports['jg-textui']:HideText()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -17,4 +17,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports['lab-HintUI']:Hide()
|
return exports['lab-HintUI']:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -17,4 +17,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports['okokTextUI']:Close()
|
return exports['okokTextUI']:Close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -18,4 +18,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports.ox_lib:hideTextUI()
|
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 playerEntity = GetPlayerPed(src)
|
||||||
local playerCoords = GetEntityCoords(playerEntity)
|
local playerCoords = GetEntityCoords(playerEntity)
|
||||||
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
|
TriggerEvent('community_bridge:Client:OnPlayerInside', src, insideId, currentBucket, playerCoords)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Housing
|
||||||
@@ -8,4 +8,6 @@ end)
|
|||||||
|
|
||||||
RegisterNetEvent("Housing:client:DeleteFurnitures", function()
|
RegisterNetEvent("Housing:client:DeleteFurnitures", function()
|
||||||
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
|
TriggerServerEvent('community_bridge:Server:_OnPlayerInside', false)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Housing
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
if GetResourceState('bcs-housing') ~= 'started' then return end
|
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
|
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)
|
RegisterNetEvent('esx_property:leave', function(insideId)
|
||||||
local src = source
|
local src = source
|
||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Housing
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
if GetResourceState('ps-housing') ~= 'started' then return end
|
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)
|
RegisterNetEvent('ps-housing:server:leaveProperty', function(insideId)
|
||||||
local src = source
|
local src = source
|
||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Housing
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
if GetResourceState('qb-appartments') ~= 'started' then return end
|
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
|
local src = source
|
||||||
insideId = bool and house .. '-' .. insideId or nil
|
insideId = bool and house .. '-' .. insideId or nil
|
||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Housing
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
if GetResourceState('qb-houses') ~= 'started' then return end
|
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
|
local src = source
|
||||||
insideId = bool and insideId or nil
|
insideId = bool and insideId or nil
|
||||||
TriggerEvent('community_bridge:Server:_OnPlayerInside', src, insideId)
|
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)
|
return OpenInput(title, data, isQBFormat, submitText)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Input
|
||||||
|
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
-- Unit tests
|
-- Unit tests
|
||||||
local thisIsQB = {
|
local thisIsQB = {
|
||||||
|
|||||||
@@ -40,4 +40,6 @@ Inventory.StripPNG = function(item)
|
|||||||
item = string.gsub(item, ".png", "")
|
item = string.gsub(item, ".png", "")
|
||||||
end
|
end
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -151,4 +151,6 @@ Inventory.StripPNG = function(item)
|
|||||||
item = string.gsub(item, ".png", "")
|
item = string.gsub(item, ".png", "")
|
||||||
end
|
end
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -54,4 +54,6 @@ end
|
|||||||
RegisterNetEvent('community_bridge:client:codem-inventory:openStash', function(id, data)
|
RegisterNetEvent('community_bridge:client:codem-inventory:openStash', function(id, data)
|
||||||
if source ~= 65535 then return end
|
if source ~= 65535 then return end
|
||||||
TriggerServerEvent('codem-inventory:server:openstash', id, data.slots, data.weight, data.label)
|
TriggerServerEvent('codem-inventory:server:openstash', id, data.slots, data.weight, data.label)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -171,4 +171,6 @@ end
|
|||||||
-- @param shopGroups table
|
-- @param shopGroups table
|
||||||
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
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.")
|
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
|
end
|
||||||
return repackedTable
|
return repackedTable
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -225,4 +225,6 @@ end
|
|||||||
lib.callback.register('community_bridge:Callback:core_inventory', function(source)
|
lib.callback.register('community_bridge:Callback:core_inventory', function(source)
|
||||||
local items = core:getItemsList()
|
local items = core:getItemsList()
|
||||||
return items or {}
|
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
|
if source ~= 65535 then return end
|
||||||
TriggerEvent("inventory:client:SetCurrentStash", id)
|
TriggerEvent("inventory:client:SetCurrentStash", id)
|
||||||
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
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)
|
jpr:CreateShop(repackedShopItems)
|
||||||
registeredShops[shopTitle] = true
|
registeredShops[shopTitle] = true
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -69,3 +69,5 @@ end
|
|||||||
Inventory.OpenStash = function(id)
|
Inventory.OpenStash = function(id)
|
||||||
origin:openInventory('stash', id, { label = id, weight = 400000, slots = 100, })
|
origin:openInventory('stash', id, { label = id, weight = 400000, slots = 100, })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -181,3 +181,6 @@ end
|
|||||||
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
||||||
return true, print("Currently runtime shops are not supported in origen_inventory")
|
return true, print("Currently runtime shops are not supported in origen_inventory")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -52,4 +52,6 @@ end
|
|||||||
|
|
||||||
Inventory.OpenShop = function(shopTitle, shopInventory)
|
Inventory.OpenShop = function(shopTitle, shopInventory)
|
||||||
ox_inventory:openInventory("shop", { type = shopTitle, id = 1 })
|
ox_inventory:openInventory("shop", { type = shopTitle, id = 1 })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -182,4 +182,6 @@ end
|
|||||||
---@return table
|
---@return table
|
||||||
Inventory.GetItem = function(src, item, metadata)
|
Inventory.GetItem = function(src, item, metadata)
|
||||||
return ox_inventory:GetItem(src, item, metadata, false)
|
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
|
if source ~= 65535 then return end
|
||||||
TriggerEvent('ps-inventory:client:SetCurrentStash', id)
|
TriggerEvent('ps-inventory:client:SetCurrentStash', id)
|
||||||
TriggerServerEvent('ps-inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
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)
|
sloth:CreateShop(repackedShopItems)
|
||||||
registeredShops[shopTitle] = true
|
registeredShops[shopTitle] = true
|
||||||
return 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
|
if source ~= 65535 then return end
|
||||||
TriggerEvent("inventory:client:SetCurrentStash", id)
|
TriggerEvent("inventory:client:SetCurrentStash", id)
|
||||||
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
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
|
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.")
|
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
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -74,3 +74,5 @@ end
|
|||||||
Inventory.OpenStash = function(id)
|
Inventory.OpenStash = function(id)
|
||||||
quasar:RegisterStash(id, 50, 50000)
|
quasar:RegisterStash(id, 50, 50000)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -198,4 +198,6 @@ end
|
|||||||
-- @param shopGroups table
|
-- @param shopGroups table
|
||||||
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
|
||||||
return false, print("Currently qs shop is not bridged")
|
return false, print("Currently qs shop is not bridged")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -70,4 +70,6 @@ end
|
|||||||
---@return nil
|
---@return nil
|
||||||
Inventory.OpenStash = function(id)
|
Inventory.OpenStash = function(id)
|
||||||
tgiann:OpenInventory('stash', id, { maxweight = 400000, slots = 100 })
|
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.count = item.amount
|
||||||
item.metadata = item.info
|
item.metadata = item.info
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -22,4 +22,6 @@ end
|
|||||||
---@return boolean
|
---@return boolean
|
||||||
Managment.RemoveAccountMoney = function(account, amount)
|
Managment.RemoveAccountMoney = function(account, amount)
|
||||||
return exports['Renewed-Banking']:removeAccountMoney(account, amount)
|
return exports['Renewed-Banking']:removeAccountMoney(account, amount)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Managment
|
||||||
@@ -10,4 +10,6 @@ end
|
|||||||
|
|
||||||
Managment.RemoveAccountMoney = function(account, amount)
|
Managment.RemoveAccountMoney = function(account, amount)
|
||||||
return false, print("The resource you are using does not support this function.")
|
return false, print("The resource you are using does not support this function.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Managment
|
||||||
@@ -22,4 +22,6 @@ end
|
|||||||
---@return boolean
|
---@return boolean
|
||||||
Managment.RemoveAccountMoney = function(account, amount)
|
Managment.RemoveAccountMoney = function(account, amount)
|
||||||
return exports['okokBanking']:RemoveMoney(account, amount)
|
return exports['okokBanking']:RemoveMoney(account, amount)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Managment
|
||||||
@@ -22,4 +22,6 @@ end
|
|||||||
---@return boolean
|
---@return boolean
|
||||||
Managment.RemoveAccountMoney = function(account, amount)
|
Managment.RemoveAccountMoney = function(account, amount)
|
||||||
return exports['qb-banking']:RemoveMoney(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)
|
function Math.Map(value, inMin, inMax, outMin, outMax)
|
||||||
return (value - inMin) / (inMax - inMin) * (outMax - outMin) + outMin
|
return (value - inMin) / (inMax - inMin) * (outMax - outMin) + outMin
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Math
|
||||||
@@ -23,6 +23,7 @@ RegisterNetEvent('community_bridge:client:MenuCallback', function(_args)
|
|||||||
onSelect(args)
|
onSelect(args)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Menu
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
|
|||||||
@@ -35,4 +35,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
Notify.ShowHelpText = function(message, position)
|
Notify.ShowHelpText = function(message, position)
|
||||||
return HelpText.ShowHelpText(message, position)
|
return HelpText.ShowHelpText(message, position)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Notify
|
||||||
@@ -30,4 +30,6 @@ end
|
|||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
Notify.HideHelpText = function(src)
|
Notify.HideHelpText = function(src)
|
||||||
return HelpText.HideHelpText(src)
|
return HelpText.HideHelpText(src)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Notify
|
||||||
@@ -17,4 +17,6 @@ end
|
|||||||
Notify.SendNotify = function(message, _type, time)
|
Notify.SendNotify = function(message, _type, time)
|
||||||
time = time or 3000
|
time = time or 3000
|
||||||
return exports['mythic_notify']:SendAlert('inform', message, time)
|
return exports['mythic_notify']:SendAlert('inform', message, time)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Notify
|
||||||
@@ -17,4 +17,6 @@ end
|
|||||||
Notify.SendNotify = function(message, _type, time)
|
Notify.SendNotify = function(message, _type, time)
|
||||||
time = time or 3000
|
time = time or 3000
|
||||||
return exports['okokNotify']:Alert('Notification', message, time, _type, false)
|
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