Added - Framework.GetFrameworkName()
Useful in situations that need run for framework specific tables
This commit is contained in:
1 parent
4d814f176d
commit
3a9d85aa1b
6 files changed
+24
No files matched your search
@@ -4,6 +4,10 @@ ESX = exports["es_extended"]:getSharedObject()
|
|||||||
|
|
||||||
Framework = {}
|
Framework = {}
|
||||||
|
|
||||||
|
Framework.GetFrameworkName = function()
|
||||||
|
return 'es_extended'
|
||||||
|
end
|
||||||
|
|
||||||
Framework.GetPlayerData = function()
|
Framework.GetPlayerData = function()
|
||||||
return ESX.PlayerData
|
return ESX.PlayerData
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ ESX = exports["es_extended"]:getSharedObject()
|
|||||||
|
|
||||||
Framework = {}
|
Framework = {}
|
||||||
|
|
||||||
|
Framework.GetFrameworkName = function()
|
||||||
|
return 'es_extended'
|
||||||
|
end
|
||||||
|
|
||||||
-- Framework.GetPlayerIdentifier(src)
|
-- Framework.GetPlayerIdentifier(src)
|
||||||
-- Returns the citizen ID of the player.
|
-- Returns the citizen ID of the player.
|
||||||
Framework.GetPlayerIdentifier = function(src)
|
Framework.GetPlayerIdentifier = function(src)
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ QBCore = exports['qb-core']:GetCoreObject()
|
|||||||
|
|
||||||
Framework = {}
|
Framework = {}
|
||||||
|
|
||||||
|
Framework.GetFrameworkName = function()
|
||||||
|
return 'qb-core'
|
||||||
|
end
|
||||||
|
|
||||||
Framework.GetPlayerData = function()
|
Framework.GetPlayerData = function()
|
||||||
return QBCore.Functions.GetPlayerData()
|
return QBCore.Functions.GetPlayerData()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ QBCore = exports['qb-core']:GetCoreObject()
|
|||||||
|
|
||||||
Framework = {}
|
Framework = {}
|
||||||
|
|
||||||
|
Framework.GetFrameworkName = function()
|
||||||
|
return 'qb-core'
|
||||||
|
end
|
||||||
|
|
||||||
-- Framework.GetPlayerIdentifier(src)
|
-- Framework.GetPlayerIdentifier(src)
|
||||||
-- Returns the citizen ID of the player.
|
-- Returns the citizen ID of the player.
|
||||||
Framework.GetPlayerIdentifier = function(src)
|
Framework.GetPlayerIdentifier = function(src)
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ QBox = exports.qbx_core
|
|||||||
|
|
||||||
Framework = {}
|
Framework = {}
|
||||||
|
|
||||||
|
Framework.GetFrameworkName = function()
|
||||||
|
return 'qbx_core'
|
||||||
|
end
|
||||||
|
|
||||||
Framework.GetPlayerData = function()
|
Framework.GetPlayerData = function()
|
||||||
return QBox.GetPlayerData()
|
return QBox.GetPlayerData()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ local QBox = exports.qbx_core
|
|||||||
|
|
||||||
Framework = {}
|
Framework = {}
|
||||||
|
|
||||||
|
Framework.GetFrameworkName = function()
|
||||||
|
return 'qbx_core'
|
||||||
|
end
|
||||||
|
|
||||||
-- Framework.GetPlayerIdentifier(src)
|
-- Framework.GetPlayerIdentifier(src)
|
||||||
-- Returns the citizen ID of the player.
|
-- Returns the citizen ID of the player.
|
||||||
Framework.GetPlayerIdentifier = function(src)
|
Framework.GetPlayerIdentifier = function(src)
|
||||||
|
|||||||
Reference in new issue
Block a user