phone in the auto/manual config
This commit is contained in:
1 parent
064d3b7ccd
commit
f517d23a41
7 files changed
+25
-18
No files matched your search
@@ -1,6 +1,8 @@
|
|||||||
if GetResourceState('gksphone') ~= 'started' or (BridgeSharedConfig.Phone ~= "gksphone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
local resourceName = "gksphone"
|
||||||
|
local configValue = BridgeSharedConfig.Phone
|
||||||
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
|
|
||||||
Phone = {}
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
---@param email string
|
---@param email string
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
if GetResourceState('gksphone') ~= 'started' or (BridgeSharedConfig.Phone ~= "gksphone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
local resourceName = "gksphone"
|
||||||
|
local configValue = BridgeSharedConfig.Phone
|
||||||
Phone = {}
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
---@param src number
|
---@param src number
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
if GetResourceState('lb-phone') ~= 'started' or (BridgeSharedConfig.Phone ~= "lb-phone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
local resourceName = "lb-phone"
|
||||||
|
local configValue = BridgeSharedConfig.Phone
|
||||||
Phone = {}
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
---@param email string
|
---@param email string
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
if GetResourceState('lb-phone') ~= 'started' or (BridgeSharedConfig.Phone ~= "lb-phone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
local resourceName = "lb-phone"
|
||||||
|
local configValue = BridgeSharedConfig.Phone
|
||||||
Phone = {}
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
|
Phone = Phone or {}
|
||||||
|
|
||||||
Phone.GetPlayerPhone = function(src)
|
Phone.GetPlayerPhone = function(src)
|
||||||
return exports["lb-phone"]:GetEquippedPhoneNumber(src) or false
|
return exports["lb-phone"]:GetEquippedPhoneNumber(src) or false
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
if GetResourceState('qs-smartphone') ~= 'started' or (BridgeSharedConfig.Phone ~= "qs-smartphone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
local resourceName = "qs-smartphone"
|
||||||
|
local configValue = BridgeSharedConfig.Phone
|
||||||
Phone = {}
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
|
Phone = Phone or {}
|
||||||
|
|
||||||
---comment
|
---comment
|
||||||
---@param email string
|
---@param email string
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
if GetResourceState('qs-smartphone') ~= 'started' or (BridgeSharedConfig.Phone ~= "qs-smartphone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
local resourceName = "qs-smartphone"
|
||||||
Phone = {}
|
local configValue = BridgeSharedConfig.Phone
|
||||||
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
||||||
|
Phone = Phone or {}
|
||||||
---comment
|
---comment
|
||||||
---@param src number
|
---@param src number
|
||||||
---@return number||boolean
|
---@return number||boolean
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
BridgeSharedConfig = {}
|
BridgeSharedConfig = {}
|
||||||
BridgeSharedConfig.Lang = "auto" -- Change this to your preferred language (must match the locale file name ex. en or fr etc)
|
BridgeSharedConfig.Lang = "auto" -- Change this to your preferred language (must match the locale file name ex. en or fr etc)
|
||||||
BridgeSharedConfig.DebugLevel = 0 -- Change this to your Debug level, 0 for none, 1 for some, 2 for all data
|
BridgeSharedConfig.DebugLevel = 0 -- Change this to your Debug level, 0 for none, 1 for some, 2 for all data
|
||||||
BridgeSharedConfig.Phone = "auto" -- Change this to your prefrence or leave it as auto
|
BridgeSharedConfig.Phone = "auto" -- [ auto | qs-smartphone | lb-phone | gksphone]
|
||||||
|
|
||||||
return BridgeSharedConfig
|
return BridgeSharedConfig
|
||||||
Reference in new issue
Block a user