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
+6 -22

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ Dispatch = {}
Dispatch.SendAlert = function(data)
local playerData = exports['cd_dispatch']:GetPlayerInfo()
local randomID = Bridge.helper.RandomString()
local randomID = Bridge.Helper.RandomString()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = data.job,
coords = data.coords or playerData.coords,
+1 -3
View File
@@ -66,6 +66,4 @@ RegisterNetEvent('QBCore:Client:OnJobUpdate', function(data)
PlayerJobGradeName = data.grade.name
PlayerJobGradeLevel = data.grade.level
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
end)
Bridge.RegisterModule("Framework", Framework)
end)
+1 -11
View File
@@ -1,8 +1,5 @@
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
Framework = {}
@@ -55,11 +52,4 @@ RegisterNetEvent('QBCore:Client:OnJobUpdate', function(data)
PlayerJobGradeName = data.grade.name
PlayerJobGradeLevel = data.grade.level
TriggerEvent('community_bridge:Client:OnPlayerJobUpdate',PlayerJobName, PlayerJobLabel, PlayerJobGradeName, PlayerJobGradeLevel)
end)
--[[
print("Qbox shit.")
print(Framework.GetPlayerIdentifier())
print(json.encode(Framework.GetPlayerInventory()))
print(json.encode(Framework.GetIsPlayerDead()))
--]]
end)
-3
View File
@@ -1,8 +1,5 @@
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
Framework = {}
+1 -1
View File
@@ -61,7 +61,7 @@ Target.RemoveZone = function(name)
end
AddEventHandler('onResourceStop', function(resource)
if resource ~= GetCurrentResourceName() then
if resource == GetCurrentResourceName() then
for _, target in pairs(targetZones) do
if target.creator == resource then
ox_target:removeZone(target.id)
+1 -1
View File
@@ -83,7 +83,7 @@ Target.RemoveZone = function(name)
end
AddEventHandler('onResourceStop', function(resource)
if resource ~= GetCurrentResourceName() then
if resource == GetCurrentResourceName() then
for _, target in pairs(targetZones) do
if target.creator == resource then
exports['qb-target']:RemoveZone(target.name)
+1 -1
View File
@@ -229,7 +229,7 @@ Utility.GetClosestPlayer = function(coords, distanceScope, includeMe)
end
AddEventHandler('onResourceStop', function(resource)
if resource ~= GetCurrentResourceName() then
if resource == GetCurrentResourceName() then
for _, blip in pairs(blipIDs) do
if DoesBlipExist(blip.id) then
RemoveBlip(blip.id)
-1
View File
@@ -1,4 +1,3 @@
local loadedModules = {}
function Require(modulePath, resourceName)