From f553fe3f260168b47435676b12f344bd9ee47c08 Mon Sep 17 00:00:00 2001 From: Cocodrulo <142546774+Cocodrulo@users.noreply.github.com> Date: Wed, 8 Jan 2025 13:27:48 +0100 Subject: [PATCH] Add function to retrieve full character name --- client/functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/functions.lua b/client/functions.lua index b329f24..e99ece5 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -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