mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 02:01:33 +00:00
Add function to retrieve full character name
This commit is contained in:
@@ -36,6 +36,8 @@ function QBCore.Functions.HasItem(items, amount)
|
||||
return exports['qb-inventory']:HasItem(items, amount)
|
||||
end
|
||||
|
||||
---Returns the full character name
|
||||
---@return string
|
||||
function exports.Functions.GetName()
|
||||
local charinfo = QBCore.PlayerData.charinfo
|
||||
return charinfo.firstname .. ' ' .. charinfo.lastname
|
||||
|
||||
Reference in New Issue
Block a user