πframework bridge
Overview
Client-Side Bridge
File: modules/editable_client.lua
modules/editable_client.luaESX (Default)
Editable = Editable or {}
function Editable.GetPlayerGroup()
local xPlayer = ESX.GetPlayerData()
if xPlayer then
return xPlayer.job and xPlayer.job.grade_name or 'user'
end
return 'user'
end
function Editable.ShowNotification(message)
ESX.ShowNotification(message)
end
function Editable.GetPlayerName()
local xPlayer = ESX.GetPlayerData()
if xPlayer then
return xPlayer.name or GetPlayerName(PlayerId())
end
return GetPlayerName(PlayerId())
endQB-Core
OX Core
Standalone
Server-Side Bridge
File: modules/editable_server.lua
modules/editable_server.luaESX (Default)
QB-Core
OX Core
Standalone
Function Reference
Client Functions
Function
Description
Returns
Server Functions
Function
Description
Returns
Group System
Example Group Colors
Modifying fxmanifest.lua
ESX (Default)
QB-Core
OX Core
Standalone
Next Steps
Last updated