AddRacketeeringMoney

πŸ“¦ Export

exports['kartik-gangs']:AddRacketeeringMoney(coords, amount)

🧩 Description

This export:

  1. Determines the zone based on the provided world coordinates.

  2. Checks which gang controls that zone.

  3. Adds racketeering money to that gang server-side.

Designed to be lightweight and safe for frequent calls (e.g. shop sales, NPC interactions).


πŸ”§ Parameters

Name
Type
Required
Description

coords

table / vector3

βœ…

World coordinates { x, y, z } or GetEntityCoords(entity)

amount

number

βœ…

Amount of money to add


↩️ Return Value

Value
Meaning

true

Money successfully added

false

Invalid coords, amount, or zone not controlled


βœ… Example Usage

πŸͺ Shop Sale Integration


🧾 From Another Resource (Server-side)


  • Drug sales

  • Illegal shops

  • Black market NPCs

  • Gang-controlled businesses

  • Passive income systems

Last updated