Add GetPlayer functions to framework and New FUnctions to Utility
This commit is contained in:
1 parent
69edf6f6ab
commit
1242d9ef7c
4 files changed
+118
No files matched your search
@@ -16,6 +16,15 @@ Framework.GetPlayerDob = function(src)
|
||||
return dob
|
||||
end
|
||||
|
||||
--- This will return a table of the players data
|
||||
---@param src any
|
||||
---@return table | nil
|
||||
Framework.GetPlayer = function(src)
|
||||
local xPlayer = ESX.GetPlayerFromId(src)
|
||||
if not xPlayer then return end
|
||||
return xPlayer
|
||||
end
|
||||
|
||||
-- Framework.GetPlayerIdentifier(src)
|
||||
-- Returns the citizen ID of the player.
|
||||
Framework.GetPlayerIdentifier = function(src)
|
||||
|
||||
Reference in new issue
Block a user