removed guard in module registration
This commit is contained in:
1 parent
4070458c54
commit
94404122c8
24 files changed
+23
-29
No files matched your search
@@ -7,12 +7,6 @@ function Bridge.RegisterModule(moduleName, moduleTable)
|
|||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if Bridge[moduleName] then
|
|
||||||
if BridgeSharedConfig.DebugLevel ~= 0 then
|
|
||||||
print("^6Module already registered:", moduleName, "^0")
|
|
||||||
end
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local wrappedModule = {}
|
local wrappedModule = {}
|
||||||
if type(moduleTable) == 'function' then
|
if type(moduleTable) == 'function' then
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ Utility.RegisterPoint = function(pointCoords, pointDistance, pointOnEnter, point
|
|||||||
pointOnExit(self)
|
pointOnExit(self)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
local pointID = Utility.CreateUniqueId(nil, 5, nil)
|
local pointID = Bridge.Ids.RandomLower(nil, 8)
|
||||||
ActivePoints[pointID] = enterZone
|
ActivePoints[pointID] = enterZone
|
||||||
return enterZone, pointID
|
return enterZone, pointID
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('MrNewbVehicleKeys') ~= 'started' then return end
|
if GetResourceState('MrNewbVehicleKeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
if not DoesEntityExist(vehicle) then return false end
|
if not DoesEntityExist(vehicle) then return false end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('MrNewbVehicleKeys') ~= 'started' then return end
|
if GetResourceState('MrNewbVehicleKeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' then return end
|
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
if not DoesEntityExist(vehicle) then return false end
|
if not DoesEntityExist(vehicle) then return false end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' then return end
|
if GetResourceState('Renewed-Vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('cd_garage') ~= 'started' then return end
|
if GetResourceState('cd_garage') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
TriggerEvent('cd_garage:AddKeys', plate)
|
TriggerEvent('cd_garage:AddKeys', plate)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('cd_garage') ~= 'started' then return end
|
if GetResourceState('cd_garage') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('mk_vehiclekeys') ~= 'started' then return end
|
if GetResourceState('mk_vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
if not DoesEntityExist(vehicle) then return false end
|
if not DoesEntityExist(vehicle) then return false end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('mk_vehiclekeys') ~= 'started' then return end
|
if GetResourceState('mk_vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
-- wip
|
-- wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('okokGarage') ~= 'started' then return end
|
if GetResourceState('okokGarage') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
TriggerServerEvent('okokGarage:GiveKeys', plate)
|
TriggerServerEvent('okokGarage:GiveKeys', plate)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('okokGarage') ~= 'started' then return end
|
if GetResourceState('okokGarage') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
if GetResourceState('qb-vehiclekeys') ~= 'started' then return end
|
if GetResourceState('qb-vehiclekeys') ~= 'started' then return end
|
||||||
if GetResourceState('qbx_vehiclekeys') == 'started' then return end
|
if GetResourceState('qbx_vehiclekeys') == 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
if GetResourceState('qb-vehiclekeys') ~= 'started' then return end
|
if GetResourceState('qb-vehiclekeys') ~= 'started' then return end
|
||||||
if GetResourceState('qbx_vehiclekeys') == 'started' then return end
|
if GetResourceState('qbx_vehiclekeys') == 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('qbx_vehiclekeys') ~= 'started' then return end
|
if GetResourceState('qbx_vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('qbx_vehiclekeys') ~= 'started' then return end
|
if GetResourceState('qbx_vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('qs-vehiclekeys') ~= 'started' then return end
|
if GetResourceState('qs-vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
|
local model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('qs-vehiclekeys') ~= 'started' then return end
|
if GetResourceState('qs-vehiclekeys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('t1ger_keys') ~= 'started' then return end
|
if GetResourceState('t1ger_keys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
if not DoesEntityExist(vehicle) then return false end
|
if not DoesEntityExist(vehicle) then return false end
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('t1ger_keys') ~= 'started' then return end
|
if GetResourceState('t1ger_keys') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('wasabi_carlock') ~= 'started' then return end
|
if GetResourceState('wasabi_carlock') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(vehicle, plate)
|
VehicleKey.GiveKeys = function(vehicle, plate)
|
||||||
exports.wasabi_carlock:GiveKey(plate)
|
exports.wasabi_carlock:GiveKey(plate)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
if GetResourceState('wasabi_carlock') ~= 'started' then return end
|
if GetResourceState('wasabi_carlock') ~= 'started' then return end
|
||||||
VehicleKey = {}
|
VehicleKey = VehicleKey or {}
|
||||||
|
|
||||||
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
VehicleKey.GiveKeys = function(src, vehicle, plate)
|
||||||
--wip
|
--wip
|
||||||
|
|||||||
Reference in new issue
Block a user