Skip to content

Commit

Permalink
feat(server/functions): GetPlate
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb committed Jun 5, 2023
1 parent bcfa188 commit e019e0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,10 @@ end
function QBCore.Functions.Notify(source, text, notifyType, duration)
TriggerClientEvent('QBCore:Notify', source, text, notifyType, duration)
end

---@param vehicle number
---@return string?
function QBCore.Functions.GetPlate(vehicle)
if not vehicle or vehicle == 0 then return end
return QBCore.Shared.Trim(GetVehicleNumberPlateText(vehicle))
end

0 comments on commit e019e0f

Please sign in to comment.