mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 14:26:03 +01:00
feat: notify player function
This commit is contained in:
@@ -5,7 +5,7 @@ local function createCharacterTable(info)
|
|||||||
source = info.source,
|
source = info.source,
|
||||||
identifier = info.identifier,
|
identifier = info.identifier,
|
||||||
identifiers = playerInfo.identifiers or {},
|
identifiers = playerInfo.identifiers or {},
|
||||||
discord = playerInfo.discord or {}
|
discord = playerInfo.discord or {},
|
||||||
name = info.name,
|
name = info.name,
|
||||||
firstname = info.firstname,
|
firstname = info.firstname,
|
||||||
lastname = info.lastname,
|
lastname = info.lastname,
|
||||||
@@ -165,6 +165,13 @@ local function createCharacterTable(info)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
function self.notify(...)
|
||||||
|
if not self.source then return end
|
||||||
|
TriggerClientEvent("ox_lib:notify", self.source, ...)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
---@param reason string
|
---@param reason string
|
||||||
function self.drop(reason)
|
function self.drop(reason)
|
||||||
if not self.source then return end
|
if not self.source then return end
|
||||||
|
|||||||
Reference in New Issue
Block a user