Kartik Scripts

Core

The main settings file: tablet, feature switches, admins, commands, logs and blips.

General

SettingDefaultWhat it does
DebugfalsePrints extra debug messages in the server and F8 console. Leave off on a live server
UtcOffset0Hours to shift the script's clock to your time zone (decimals allowed, e.g. 5.5). Affects every time window (raids, turf activity, airdrops) and daily stats
PoliceJobspolice, sheriff, bcso, sasp, lspdJobs counted as police: they get alerts, can raid hideouts, and can't sell on corners. On QBCore / Qbox, any job with the type leo also counts

Tablet

SettingDefaultWhat it does
Tablet.Command'gangtablet'Chat command that opens the tablet. false removes it
Tablet.Item'gang_tablet'Usable item that opens the tablet. false turns this off
Tablet.KeybindfalseSet to a key like 'F9' to add a rebindable key. Needs Tablet.Command to be set
Tablet.Animation.dict / clipTablet idle animationAnimation played while the tablet is open. Remove to play none
Tablet.Animation.prop.model'prop_cs_tablet'Prop held in the hand. Remove prop for no prop
Tablet.Animation.prop.bone28422Bone the prop attaches to (right hand)
Tablet.Animation.prop.pos / rotoffsetsPosition and rotation of the prop in the hand
Tablet.Currency.code'USD'Currency shown on money, e.g. 'EUR', 'GBP'
Tablet.Currency.locale'en-US'Number format, e.g. 'de-DE' for 1.000,00

Desk & interface

SettingDefaultWhat it does
ManageFromTabletfalsetrue lets gangs use the Organisation pages (members, treasury, upgrades…) from the tablet anywhere. false means only at the hideout desk
KeyHints'kartik'On-screen key prompts: 'kartik' for the built-in panel, 'ox' for ox_lib text UI
LockDeskfalsetrue lets only one member use a gang's desk at a time

Branding

SettingDefaultWhat it does
Branding.EnabledtrueLet gangs change their colour, logo, banner and plate prefix from the tablet (rank permission branding)
Branding.CooldownMinutes10Wait between branding changes

See Branding & Gang Vehicles.


Limits

SettingDefaultWhat it does
Limits.MaxRanks10Most ranks a gang can ever have. Upgrades can't go above this
Limits.MaxMembers30Most members a gang can ever have. Upgrades can't go above this
Limits.AliasMin3Shortest alias allowed
Limits.AliasMax20Longest alias allowed
Limits.InviteSeconds60How long an invite stays open
Limits.InviteDistance10.0Maximum distance between inviter and player. The invite list itself shows players within 8 m

Features

Turn whole systems on or off. Every feature is true by default. Turning one off also hides its tablet and admin pages.

SettingTurning it off removes
Features.MarketUnderground market and /marketclaim
Features.WarsGang wars
Features.DarkChatDark chat
Features.RankingLeaderboards
Features.SeasonPassSeason pass
Features.ContractsContracts
Features.TurfsTurfs and influence
Features.HotspotsHotspots
Features.GraffitiGraffiti
Features.RacketeeringRackets
Features.CornersCorner selling. Turn off if you use another drug script
Features.RaidsPolice raids
Features.LaunderingMoney laundering
Features.MedicBlack medic
Features.AirdropsAirdrops
Features.SurveillanceSpy gear
Features.RestraintsTie up and head bags. Turn off if you use another restraint script
Features.FurnitureHideout furniture
Features.GarageGang vehicles, dealership and garages
Features.StashGang stash and storage furniture
Features.WardrobeGang wardrobe
Features.DailySpinThe daily spin prize wheel

Don't delete SeasonPass from the list. Removing that line turns the season pass off, while the other features stay on when their line is missing.


Commands

Command names. Set any to false to remove it.

SettingDefaultWhat it does
Commands.Admin'gangadmin'Opens the admin panel
Commands.SetGang'setgangmember'/setgangmember [id or citizen id] [gang id] [rank] adds a player to a gang
Commands.RemoveMember'kickgangmember'/kickgangmember [id or citizen id] removes a player from their gang
Commands.GiveVehicle'giveganggarage'/giveganggarage [gang id] [model] gives a gang a vehicle
Commands.ResetStats'resetgangstats'/resetgangstats [gang id] resets one gang's stats, or all gangs if no ID
Commands.FurnitureImages'gangfurnitureimages'Generates furniture shop images. Add force to redo all, stop to cancel. In game only
Commands.TurfAttack'turfattack'/turfattack [turf name or id] starts an NPC attack on a turf, /turfattack stop ends every attack
Commands.CreateGang'creategang'Players: apply for a new gang
Commands.GangRequests'gangrequests'Admins: approve or decline gang requests

Gang registration

Lets players apply for their own gang. Full guide: Gang Registration.

SettingDefaultWhat it does
Registration.EnabledtrueTurns registration on or off. Without the block it is off
Registration.Approvaltruetrue: an admin approves every request. false: the gang is created as soon as the player applies
Registration.Fee50000Price to apply, given back if the request is declined or cancelled. 0 makes it free
Registration.Account'bank'Where the fee is paid from: 'cash' or 'bank'
Registration.ItemfalseItem needed to apply, e.g. 'gang_papers'. One is taken and given back like the fee
Registration.MaxPending20Most requests waiting at the same time
Registration.CooldownMinutes60Wait after a declined request
Registration.NameLength{ 3, 24 }Shortest and longest gang name (at most 32)
Registration.NoteLength200Longest "about your gang" text

Admins

SettingDefaultWhat it does
AdminsemptyExtra admins, by identifier or citizen ID, e.g. ['license:abc123'] = true

Framework admins and the kartikgangs.admin ace also count. See Admin Access.


Dispatch & logs

SettingDefaultWhat it does
Dispatch.Mode'server''server': the server sends police alerts, so players can't block them. 'client': the criminal's game sends them
Logs.DrugSalestrueLog every drug sale to the general webhook
Logs.RobberiestrueLog robberies to the general webhook
Logs.TurfAbandonedtrueLog abandoned turfs to the general webhook

Rivalries and turf owner changes are always logged.

Gang activity log

Extra entries in each gang's activity log (tablet Activity page, admin gang Activity tab, and the gang's Discord webhook if set).

SettingDefaultWhat it does
ActivityLog.DrugSalestrueLog every drug sale by a member
ActivityLog.StashOpenedtrueLog stash opens, at most once per 5 minutes per member
ActivityLog.StashItemstrueLog items put in and taken out of gang stashes. ox_inventory only

With no dispatch script, officers get a notification and a map blip for 90 seconds.


Webhooks

Paste Discord webhook URLs. Leave empty to turn a channel off.

SettingLogs
Webhooks.generalTreasury moves, upgrades, pass unlocks, drug sales, robberies, turf changes, dark chat
Webhooks.adminEvery admin panel action
Webhooks.warsWars starting and ending
Webhooks.raidsRaids pending, starting, ending and money seized
Webhooks.marketListings, purchases and admin removals

The general webhook also gets tier promotions and weekly / monthly leaderboard results. Each gang can also have its own webhook for its activity log, set in Admin → Gangs → [gang].


Blips

SettingDefaultWhat it does
Blips.Hideout.sprite492Map icon for the gang hideout
Blips.Hideout.color1Blip colour
Blips.Hideout.scale0.8Blip size
Blips.Hideout.label'Gang Hideout'Blip name
Blips.ShowHideoutToMemberstrueShow members their own hideout on the map. Other gangs never see it

Guards leave alone

NPC guards (contracts and airdrops) never shoot these players. Guards already shooting at one of them stop.

GuardExempt = {
    Downed = true,                           -- downed / dead players
    Jobs = { ambulance = true, ems = true }, -- these jobs...
    RequireDuty = true,                      -- ...only while on duty
},
KeyDefaultWhat it does
GuardExempt.DownedtrueGuards stop shooting players who are downed or dead
GuardExempt.Jobs{ ambulance = true, ems = true }Jobs guards never attack. Add your server's EMS job names
GuardExempt.RequireDutytrueOnly protect those jobs while on duty

On this page