feat: notify player function

This commit is contained in:
Andyyy7666
2023-07-12 04:53:35 +02:00
parent 5674e424a8
commit 9da69aa350

View File

@@ -5,7 +5,7 @@ local function createCharacterTable(info)
source = info.source,
identifier = info.identifier,
identifiers = playerInfo.identifiers or {},
discord = playerInfo.discord or {}
discord = playerInfo.discord or {},
name = info.name,
firstname = info.firstname,
lastname = info.lastname,
@@ -165,6 +165,13 @@ local function createCharacterTable(info)
return true
end
function self.notify(...)
if not self.source then return end
TriggerClientEvent("ox_lib:notify", self.source, ...)
return true
end
---@param reason string
function self.drop(reason)
if not self.source then return end