↩ī¸Events

Client

gw:onDeath
Example
TriggerServerEvent('gw:onDeath', killerId)

Server

gw:onWarSent
Example
RegisterNetEvent('gw:onWarSent', function(playerId, gang, toGang, price)
    print(GetPlayerName(playerId)..' ('..gang..') sent a war to: '..toGang..' for: '..tostring(price))
end)
gw:onWarDeclined
Example
RegisterNetEvent('gw:onWarDeclined', function(playerId, gang, fromGang, price)
    print(GetPlayerName(playerId)..' ('..gang..') declined a war from: '..fromGang..' for: '..tostring(price))
end)
gw:onWarAccepted
Example
RegisterNetEvent('gw:onWarDeclined', function(playerId, gang, fromGang, price)
    print(GetPlayerName(playerId)..' ('..gang..') accepted a war from: '..fromGang..' for: '..tostring(price))
end)
gw:onWarEnded
Example
RegisterNetEvent('gw:onWarEnded', function(winnerGang, loserGang, totalPrice)
    print(winnerGang..' has won a war against '..loserGang..' for: '..tostring(totalPrice))
end)

Last updated