just a simple script that can check player is online by using identifier.
- Get is player online from identifier
- Exports for easy access
exports['errorism.isonline']:get(identifier)| Parameter | Type | Description |
|---|---|---|
identifier |
string |
Required. Identifier of player |
return |
boolean |
return targetPlayerId |
local xPlayer = ESX.GetPlayerFromId(source)
local isOnline = exports['errorism.isonline']:get(xPlayer.identifier)
print(isOnline)
-- Output : 1Server: lua
