# Open Source Hooks

Use these events and functions to extend functionality.

```lua
-- Reward Player (excluding ELO system)
RegisterNetEvent('hs_gungame:rewardPlayer', function()
    -- Example: give money or items
    if QBCore then
        local Player = QBCore.Functions.GetPlayerData()
        TriggerServerEvent('qb-banking:addMoney', Player.source, 5000, 'GunGame Win')
    elseif ESX then
        TriggerServerEvent('esx:addMoney', 5000)
    end
end)

-- Custom Revive Function
function Custom_Revive()
    Wait(1000)
    TriggerEvent('qbx_medical:client:playerRevived')
    -- Replace with your revive script event if different
end
```

> \[!TIP] Integrate with your server's economy or medical scripts for a **seamless experience**.
