RX Scripts Logo
GangWars

Events

All client- & serversided events included within this script. Events serve as listeners that capture and respond to actions executed by this script.
If additional events are required for your implementation, please submit a formal request through our ticketing system on the official Discord server.

Server Events

gw:onWarSent

Triggered after a player has sent a war request to another gang.

RegisterNetEvent('gw:onWarSent', function(playerId, gang, toGang, price) end)
playerId
number

Source of the player that sent the war request.

gang
table

Data of the gang that sent the war request.

toGang
table

Data of the gang that received the war request.

price
number

Wager for the war.

gw:onWarDeclined

Triggered after a player has declined a war request from another gang.

RegisterNetEvent('gw:onWarDeclined', function(playerId, gang, fromGang, price) end)
playerId
number

Source of the player that declined the war request.

gang
table

Data of the gang that declined the war request.

fromGang
table

Data of the gang that sent the war request.

price
number

Wager for the war.

gw:onWarAccepted

Triggered after a player has accepted a war request from another gang.

RegisterNetEvent('gw:onWarAccepted', function(playerId, gang, fromGang, price) end)
playerId
number

Source of the player that accepted the war request.

gang
table

Data of the gang that accepted the war request.

fromGang
table

Data of the gang that sent the war request.

price
number

Wager for the war.

gw:onWarEnded

Triggered after a war has ended between two gangs.

RegisterNetEvent('gw:onWarEnded', function(winnerGang, loserGang, totalPrice) end)
winnerGang
table

Data of the gang that won the war.

loserGang
table

Data of the gang that lost the war.

totalPrice
number

Total amount of money wagered for the war.

Client Events

No client-sided events available at this time.