fix: Correct "not" operators placement and update function casing

- Fixed the placement of "not" operators in the code to ensure proper logic.
- Corrected the casing of a helper function to maintain consistency.
- Reworded the description for better clarity and alignment with Git commit terms.
- Updated the bridge description to highlight its community-driven approach.
- Fixed minor syntax and readability issues throughout the documentation.
This commit is contained in:
MrNewb committed 2025-01-08 06:53:55 -05:00
1 parent c6b7a3cd16
commit d2bc7ff921
8 files changed
+4 -20

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ Dispatch = {}
Dispatch.SendAlert = function(data) Dispatch.SendAlert = function(data)
local playerData = exports['cd_dispatch']:GetPlayerInfo() local playerData = exports['cd_dispatch']:GetPlayerInfo()
local randomID = Bridge.helper.RandomString() local randomID = Bridge.Helper.RandomString()
TriggerServerEvent('cd_dispatch:AddNotification', { TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = data.job, job_table = data.job,
coords = data.coords or playerData.coords, coords = data.coords or playerData.coords,
-2
View File
@@ -67,5 +67,3 @@ 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)
Bridge.RegisterModule("Framework", Framework)
-10
View File
@@ -1,8 +1,5 @@
if GetResourceState('qbx_core') ~= 'started' then return end if GetResourceState('qbx_core') ~= 'started' then return end
-- This fork is a cult, they just belittle people and degrade them to feel better about themselves.
-- Defualt support for the best free inventory currently available is cool though.
QBox = exports.qbx_core QBox = exports.qbx_core
Framework = {} Framework = {}
@@ -56,10 +53,3 @@ 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)
--[[
print("Qbox shit.")
print(Framework.GetPlayerIdentifier())
print(json.encode(Framework.GetPlayerInventory()))
print(json.encode(Framework.GetIsPlayerDead()))
--]]
-3
View File
@@ -1,8 +1,5 @@
if GetResourceState('qbx_core') ~= 'started' then return end if GetResourceState('qbx_core') ~= 'started' then return end
-- This fork is a cult, they just belittle people and degrade them to feel better about themselves.
-- Defualt support for the best free inventory currently available is cool though.
local QBox = exports.qbx_core local QBox = exports.qbx_core
Framework = {} Framework = {}
+1 -1
View File
@@ -61,7 +61,7 @@ Target.RemoveZone = function(name)
end end
AddEventHandler('onResourceStop', function(resource) AddEventHandler('onResourceStop', function(resource)
if resource ~= GetCurrentResourceName() then if resource == GetCurrentResourceName() then
for _, target in pairs(targetZones) do for _, target in pairs(targetZones) do
if target.creator == resource then if target.creator == resource then
ox_target:removeZone(target.id) ox_target:removeZone(target.id)
+1 -1
View File
@@ -83,7 +83,7 @@ Target.RemoveZone = function(name)
end end
AddEventHandler('onResourceStop', function(resource) AddEventHandler('onResourceStop', function(resource)
if resource ~= GetCurrentResourceName() then if resource == GetCurrentResourceName() then
for _, target in pairs(targetZones) do for _, target in pairs(targetZones) do
if target.creator == resource then if target.creator == resource then
exports['qb-target']:RemoveZone(target.name) exports['qb-target']:RemoveZone(target.name)
+1 -1
View File
@@ -229,7 +229,7 @@ Utility.GetClosestPlayer = function(coords, distanceScope, includeMe)
end end
AddEventHandler('onResourceStop', function(resource) AddEventHandler('onResourceStop', function(resource)
if resource ~= GetCurrentResourceName() then if resource == GetCurrentResourceName() then
for _, blip in pairs(blipIDs) do for _, blip in pairs(blipIDs) do
if DoesBlipExist(blip.id) then if DoesBlipExist(blip.id) then
RemoveBlip(blip.id) RemoveBlip(blip.id)
-1
View File
@@ -1,4 +1,3 @@
local loadedModules = {} local loadedModules = {}
function Require(modulePath, resourceName) function Require(modulePath, resourceName)