
-- Get CodexCore object
local CodexCore = exports["codex-core"]:GetCore()
-- Get player from source
local Player = CodexCore.GetPlayer(source)
-- Add money to the player
Player.AddMoney("cash", 100)
-- Get player identifier
local identifier = Player.GetIdentifier()
print("Player identifier:", identifier)

Join the CodexStudios RedM and FiveM scripting community
Last updated
Was this helpful?



