AddSeasonXp

πŸ“¦ Export

exports['kartik-gangs']:addSeasonXp(gangName, xp)

🧩 Description

This export:

  1. Checks if a season is currently active (based on database dates).

  2. Validates the XP amount.

  3. Adds Season XP to the specified gang.

If no season is active, XP is safely ignored.


πŸ”§ Parameters

Name
Type
Required
Description

gangName

string

βœ…

Gang identifier/name stored in gangs_data.gang

xp

number

βœ…

Amount of Season XP to add (must be > 0)


↩️ Return Value

Value
Meaning

true

XP successfully added

false

Invalid input or no active season


βœ… Example Usage

🏴 Gang Activity Reward


🧾 From Another Resource (Server-side)


πŸͺ Shop / Racketeering Integration


  • Territory captures

  • Gang missions

  • Racketeering milestones

  • Drug sales goals

  • Weekly challenges

Last updated