returns added everywhere per crowleys request
This commit is contained in:
1 parent
3e63414973
commit
7e0124f02e
150 files changed
+298
-2
No files matched your search
@@ -208,3 +208,5 @@ Accessibility.getAdjustedColour = function(colourName, returnAsRGB)
|
|||||||
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
|
||||||
@@ -59,3 +57,5 @@ end)
|
|||||||
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
||||||
Clothing.ReloadSkin()
|
Clothing.ReloadSkin()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Clothing
|
||||||
@@ -30,3 +30,5 @@ end)
|
|||||||
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
RegisterNetEvent('community_bridge:client:ReloadSkin', function()
|
||||||
Clothing.ReloadSkin()
|
Clothing.ReloadSkin()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Clothing
|
||||||
@@ -162,3 +162,5 @@ if BridgeSharedConfig.DebugLevel >= 1 then
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dialogue
|
||||||
@@ -27,3 +27,5 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert)
|
|||||||
Wait(alert.time)
|
Wait(alert.time)
|
||||||
Bridge.Utility.RemoveBlip(blip)
|
Bridge.Utility.RemoveBlip(blip)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -9,3 +9,5 @@ RegisterNetEvent("community_bridge:Server:DispatchAlert", function(data)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -13,3 +13,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
}
|
}
|
||||||
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
|
||||||
@@ -22,3 +22,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
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
|
||||||
@@ -38,3 +38,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
}
|
}
|
||||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -4,3 +4,5 @@ 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
|
||||||
@@ -16,3 +16,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
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
|
||||||
@@ -28,3 +28,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
}
|
}
|
||||||
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
|
||||||
@@ -36,3 +36,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
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
|
||||||
@@ -12,3 +12,5 @@ Dispatch.SendAlert = function(data)
|
|||||||
}
|
}
|
||||||
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
TriggerServerEvent("community_bridge:server:dispatch:sendAlert", alertData)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -10,3 +10,5 @@ RegisterNetEvent("community_bridge:server:dispatch:sendAlert", function(data)
|
|||||||
coords = data.coords
|
coords = data.coords
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Dispatch
|
||||||
@@ -18,3 +18,5 @@ 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
|
||||||
@@ -8,3 +8,5 @@ Doorlock = Doorlock or {}
|
|||||||
Doorlock.GetClosestDoor = function()
|
Doorlock.GetClosestDoor = function()
|
||||||
return exports["doors_creator"]:getClosestActiveDoor()
|
return exports["doors_creator"]:getClosestActiveDoor()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -17,3 +17,5 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
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
|
||||||
@@ -16,3 +16,5 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -21,3 +21,5 @@ Doorlock.GetClosestDoor = function()
|
|||||||
end
|
end
|
||||||
return door
|
return door
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -11,3 +11,5 @@ 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
|
||||||
@@ -19,3 +19,5 @@ Doorlock.GetClosestDoor = function()
|
|||||||
end
|
end
|
||||||
return door
|
return door
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Doorlock
|
||||||
@@ -16,3 +16,4 @@ Doorlock.ToggleDoorLock = function(doorID, toggle)
|
|||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
return Doorlock
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
Framework = Framework or {}
|
Framework = Framework or {}
|
||||||
|
|
||||||
|
return Framework
|
||||||
@@ -134,3 +134,5 @@ RegisterNetEvent('esx:setJob', function(data)
|
|||||||
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
|
||||||
@@ -351,3 +351,5 @@ Framework.Commands.Add = function(name, help, arguments, argsrequired, callback,
|
|||||||
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
|
||||||
@@ -90,3 +90,5 @@ RegisterNetEvent('QBCore:Client:OnJobUpdate', function(data)
|
|||||||
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
|
||||||
@@ -449,3 +449,5 @@ 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
|
||||||
@@ -22,3 +22,5 @@ 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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -27,3 +27,5 @@ 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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -28,3 +28,5 @@ Fuel.SetFuel = function(vehicle, fuel, type)
|
|||||||
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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -26,3 +26,5 @@ 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
|
||||||
@@ -27,3 +27,5 @@ 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
|
||||||
@@ -27,3 +27,5 @@ 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
|
||||||
@@ -23,3 +23,5 @@ end)
|
|||||||
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
RegisterNetEvent('community_bridge:Client:HideHelpText', function()
|
||||||
HelpText.HideHelpText()
|
HelpText.HideHelpText()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -15,3 +15,5 @@ end
|
|||||||
HelpText.HideHelpText = function(src)
|
HelpText.HideHelpText = function(src)
|
||||||
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
TriggerClientEvent('community_bridge:Client:HideHelpText', src)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -19,3 +19,5 @@ end
|
|||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return TriggerEvent('cd_drawtextui:HideUI')
|
return TriggerEvent('cd_drawtextui:HideUI')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -18,3 +18,5 @@ end
|
|||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports['jg-textui']:HideText()
|
return exports['jg-textui']:HideText()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -18,3 +18,5 @@ end
|
|||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports['lab-HintUI']:Hide()
|
return exports['lab-HintUI']:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -18,3 +18,5 @@ end
|
|||||||
HelpText.HideHelpText = function()
|
HelpText.HideHelpText = function()
|
||||||
return exports['okokTextUI']:Close()
|
return exports['okokTextUI']:Close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return HelpText
|
||||||
@@ -19,3 +19,5 @@ end
|
|||||||
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
|
||||||
@@ -10,3 +10,5 @@ RegisterNetEvent('community_bridge:Server:_OnPlayerInside', function(src, inside
|
|||||||
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
|
||||||
@@ -9,3 +9,5 @@ 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
|
||||||
@@ -11,3 +11,5 @@ 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
|
||||||
@@ -11,3 +11,5 @@ 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
|
||||||
@@ -7,3 +7,5 @@ RegisterNetEvent('qb-apartments:server:SetInsideMeta', function(house, insideId,
|
|||||||
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
|
||||||
@@ -7,3 +7,5 @@ RegisterNetEvent('qb-houses:server:SetInsideMeta', function(insideId, bool)
|
|||||||
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 = {
|
||||||
|
|||||||
@@ -41,3 +41,5 @@ Inventory.StripPNG = function(item)
|
|||||||
end
|
end
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -152,3 +152,5 @@ Inventory.StripPNG = function(item)
|
|||||||
end
|
end
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -55,3 +55,5 @@ RegisterNetEvent('community_bridge:client:codem-inventory:openStash', function(i
|
|||||||
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
|
||||||
@@ -172,3 +172,5 @@ end
|
|||||||
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
|
||||||
@@ -62,3 +62,5 @@ Inventory.GetPlayerInventory = function()
|
|||||||
end
|
end
|
||||||
return repackedTable
|
return repackedTable
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -226,3 +226,5 @@ lib.callback.register('community_bridge:Callback:core_inventory', function(sourc
|
|||||||
local items = core:getItemsList()
|
local items = core:getItemsList()
|
||||||
return items or {}
|
return items or {}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -42,3 +42,5 @@ RegisterNetEvent('community_bridge:client:jpr-inventory:openStash', function(id,
|
|||||||
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
|
||||||
@@ -155,3 +155,5 @@ Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups
|
|||||||
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
|
||||||
@@ -53,3 +53,5 @@ 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
|
||||||
@@ -183,3 +183,5 @@ end
|
|||||||
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
|
||||||
@@ -42,3 +42,5 @@ RegisterNetEvent('community_bridge:client:ps-inventory:openStash', function(id,
|
|||||||
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
|
||||||
@@ -177,3 +177,5 @@ Inventory.CreateShop = function(src, shopTitle, shopInventory, shopCoords, shopG
|
|||||||
registeredShops[shopTitle] = true
|
registeredShops[shopTitle] = true
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -42,3 +42,5 @@ RegisterNetEvent('community_bridge:client:qb-inventory:openStash', function(id,
|
|||||||
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
|
||||||
@@ -203,3 +203,5 @@ Inventory.CreateShop = function(src, shopTitle, shopInventory, shopCoords, shopG
|
|||||||
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
|
||||||
@@ -199,3 +199,5 @@ end
|
|||||||
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
|
||||||
@@ -71,3 +71,5 @@ end
|
|||||||
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
|
||||||
@@ -205,3 +205,5 @@ Inventory.GetItem = function(src, item, metadata)
|
|||||||
item.metadata = item.info
|
item.metadata = item.info
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Inventory
|
||||||
@@ -23,3 +23,5 @@ end
|
|||||||
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
|
||||||
@@ -11,3 +11,5 @@ 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
|
||||||
@@ -23,3 +23,5 @@ end
|
|||||||
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
|
||||||
@@ -23,3 +23,5 @@ end
|
|||||||
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
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
|
|||||||
@@ -36,3 +36,5 @@ end
|
|||||||
Notify.ShowHelpText = function(message, position)
|
Notify.ShowHelpText = function(message, position)
|
||||||
return HelpText.ShowHelpText(message, position)
|
return HelpText.ShowHelpText(message, position)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Notify
|
||||||
@@ -31,3 +31,5 @@ end
|
|||||||
Notify.HideHelpText = function(src)
|
Notify.HideHelpText = function(src)
|
||||||
return HelpText.HideHelpText(src)
|
return HelpText.HideHelpText(src)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return Notify
|
||||||
@@ -18,3 +18,5 @@ 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
|
||||||
@@ -18,3 +18,5 @@ 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