Events & Exports
Server Events
rm_gangs:server:onTributeEventStarted
Key | Type | Description |
---|---|---|
name | string | Tribute zone name in cfg file |
label | string | Tribute zone label in cfg file |
finishDate | number | Timestamp of the event end date |
paymentAmount | number | Money that can be received during the time interval set in the cfg file |
captureDuration | number | Event duration in the cfg file |
coords | vec4 | Coordinate of the tribute npc in the cfg file |
territory | table | Tribute territory data in cfg file |
oldOwnerName | string or nil | Name of the group that owned the tribute territory before the war |
oldOwnerLabel | string or nil | Label of the group that owned the tribute territory before the war |
rm_gangs:server:onTributeEventFinished
Key | Type | Description |
---|---|---|
name | string | Tribute zone name in cfg file |
label | string | Tribute zone label in cfg file |
paymentAmount | number | Money that can be received during the time interval set in the cfg file |
captureDuration | number | Event duration in the cfg file |
coords | vec4 | Coordinate of the tribute npc in the cfg file |
territory | table | Tribute territory data in cfg file |
ownerName | string or nil | Name of the new owner of the zone |
ownerLabel | string or nil | Label of the new owner of the zone |
captureDate | number or nil | Timestamp of the claim date |
oldOwnerName | string or nil | Name of the group that owned the tribute territory before the war |
oldOwnerLabel | string or nil | Label of the group that owned the tribute territory before the war |
rm_gangs:server:onTurfWarStarted
Key | Type | Description |
---|---|---|
id | number | Turf war id |
initiatorName | string | Name of the group that started turf war |
initiatorLabel | string | Label of the group that started turf war |
targetName | string | Name of the group that owns the turf |
targetLabel | string | Label of the group that owns the turf |
startDate | number | Timestamp of the start date of turf war |
finishDate | number | Timestamp of the end date of turf war |
rm_gangs:server:onTurfWarFinished
Key | Type | Description |
---|---|---|
id | number | Turf war id |
initiatorName | string | Name of the group that started turf war |
initiatorLabel | string | Label of the group that started turf war |
targetName | string | Name of the group that owns the turf |
targetLabel | string | Label of the group that owns the turf |
startDate | number | Timestamp of the start date of turf war |
finishDate | number | Timestamp of the end date of turf war |
initiatorNewLoyalty | number | New loyalty points for the group that started the turf war |
initiatorPersonCount | number | Number of people alive at the end of the battle for the group that started the turf war |
targetNewLoyalty | number | Turf owner's new loyalty points |
targetPersonCount | number | Turf owner's number of people alive at the end of the turf war |
successful | boolean | Winning status of the side that started the turf war |
rm_gangs:server:onWarReplied
Key | Type | Description |
---|---|---|
id | number | War id |
initiatorName | string | Name of the group that declared the war |
initiatorLabel | string | Label of the group that started war |
initiatorIdentifier | string | Identifier of the leader of the group that started the war |
initiatorScore | number | Score of the group that started the war |
targetName | string | Name of the group that is the target of the war declaration |
targetLabel | string | Label of the group being declared war on |
targetIdentifier | string | Identifier of the leader of the group declared at war |
targetScore | number | Score of the declared war group |
killGoal | number | The killing goal of war |
wager | number | The amount of money set as a wager |
accepted | boolean | Indicates whether the group declared upon has accepted the war |
declareDate | number | Timestamp of the declare date of war |
acceptRejectDate | number | Timestamp of the reply date of war |
rm_gangs:server:onWarFinished
Key | Type | Description |
---|---|---|
id | number | War id |
initiatorName | string | Name of the group that declared the war |
initiatorLabel | string | Label of the group that started war |
initiatorIdentifier | string | Identifier of the leader of the group that started the war |
initiatorScore | number | Score of the group that started the war |
initiatorNewLoyalty | number | New loyalty point of the group that started the war |
targetName | string | Name of the group that is the target of the war declaration |
targetLabel | string | Label of the group being declared war on |
targetIdentifier | string | Identifier of the leader of the group declared at war |
targetScore | number | Score of the declared war group |
targetNewLoyalty | number | New loyalty point of the declared war group |
killGoal | number | The killing goal of war |
wager | number | The amount of money set as a wager |
declareDate | number | Timestamp of the declare date of war |
acceptRejectDate | number | Timestamp of the reply date of war |
finishDate | number | Timestamp of the date the war ended |
Client Events
rm_gangs:client:onTributeEventStarted
Key | Type | Description |
---|---|---|
name | string | Tribute zone name in cfg file |
label | string | Tribute zone label in cfg file |
finishDate | number | Timestamp of the event end date |
paymentAmount | number | Money that can be received during the time interval set in the cfg file |
captureDuration | number | Event duration in the cfg file |
coords | vec4 | Coordinate of the tribute npc in the cfg file |
territory | table | Tribute territory data in cfg file |
oldOwnerName | string or nil | Name of the group that owned the tribute territory before the war |
oldOwnerLabel | string or nil | Label of the group that owned the tribute territory before the war |
rm_gangs:client:onTributeEventFinished
Key | Type | Description |
---|---|---|
name | string | Tribute zone name in cfg file |
label | string | Tribute zone label in cfg file |
paymentAmount | number | Money that can be received during the time interval set in the cfg file |
captureDuration | number | Event duration in the cfg file |
coords | vec4 | Coordinate of the tribute npc in the cfg file |
territory | table | Tribute territory data in cfg file |
ownerName | string or nil | Name of the new owner of the zone |
ownerLabel | string or nil | Label of the new owner of the zone |
captureDate | number or nil | Timestamp of the claim date |
oldOwnerName | string or nil | Name of the group that owned the tribute territory before the war |
oldOwnerLabel | string or nil | Label of the group that owned the tribute territory before the war |
rm_gangs:client:onTurfWarStarted
Key | Type | Description |
---|---|---|
id | number | Turf war id |
initiatorName | string | Name of the group that started turf war |
initiatorLabel | string | Label of the group that started turf war |
targetName | string | Name of the group that owns the turf |
targetLabel | string | Label of the group that owns the turf |
startDate | number | Timestamp of the start date of turf war |
finishDate | number | Timestamp of the end date of turf war |
rm_gangs:client:onTurfWarFinished
Key | Type | Description |
---|---|---|
id | number | Turf war id |
initiatorName | string | Name of the group that started turf war |
initiatorLabel | string | Label of the group that started turf war |
targetName | string | Name of the group that owns the turf |
targetLabel | string | Label of the group that owns the turf |
startDate | number | Timestamp of the start date of turf war |
finishDate | number | Timestamp of the end date of turf war |
initiatorNewLoyalty | number | New loyalty points for the group that started the turf war |
initiatorPersonCount | number | Number of people alive at the end of the battle for the group that started the turf war |
targetNewLoyalty | number | Turf owner's new loyalty points |
targetPersonCount | number | Turf owner's number of people alive at the end of the turf war |
successful | boolean | Winning status of the side that started the turf war |
rm_gangs:client:onWarReplied
Key | Type | Description |
---|---|---|
id | number | War id |
initiatorName | string | Name of the group that declared the war |
initiatorLabel | string | Label of the group that started war |
initiatorIdentifier | string | Identifier of the leader of the group that started the war |
initiatorScore | number | Score of the group that started the war |
targetName | string | Name of the group that is the target of the war declaration |
targetLabel | string | Label of the group being declared war on |
targetIdentifier | string | Identifier of the leader of the group declared at war |
targetScore | number | Score of the declared war group |
killGoal | number | The killing goal of war |
wager | number | The amount of money set as a wager |
accepted | boolean | Indicates whether the group declared upon has accepted the war |
declareDate | number | Timestamp of the declare date of war |
acceptRejectDate | number | Timestamp of the reply date of war |
rm_gangs:client:onWarFinished
Key | Type | Description |
---|---|---|
id | number | War id |
initiatorName | string | Name of the group that declared the war |
initiatorLabel | string | Label of the group that started war |
initiatorIdentifier | string | Identifier of the leader of the group that started the war |
initiatorScore | number | Score of the group that started the war |
initiatorNewLoyalty | number | New loyalty point of the group that started the war |
targetName | string | Name of the group that is the target of the war declaration |
targetLabel | string | Label of the group being declared war on |
targetIdentifier | string | Identifier of the leader of the group declared at war |
targetScore | number | Score of the declared war group |
targetNewLoyalty | number | New loyalty point of the declared war group |
killGoal | number | The killing goal of war |
wager | number | The amount of money set as a wager |
declareDate | number | Timestamp of the declare date of war |
acceptRejectDate | number | Timestamp of the reply date of war |
finishDate | number | Timestamp of the date the war ended |
Exports
Server Exports
addLoyalty
removeLoyalty
cancelTributeEvent
Last updated