Kartik Scripts

Hideout

Hideout instances, guests, the stash and shell settings. Also the interior and shell preset library.

General

SettingDefaultWhat it does
BucketOffset1000Each gang's hideout is its own private world, numbered this plus the gang ID. Only change it if another script uses the same numbers
DisablePopulationtrueNo NPCs or traffic inside hideouts
EnterDistance5.0How close to the entrance you must be to enter
PointRadius1.5Interaction range of the entrance, desk, stash, wardrobe and exit
FadeMs500Screen fade length when entering or leaving (milliseconds)
AutoLeaveDistance250.0Players further than this from the interior are removed from the hideout, for example after respawning
PoliceRaidAccesstruePolice can enter and search the stash during a raid
StashSlots100Slots in the gang stash. Weight comes from the stash upgrade
DefaultInterior1The interior every gang owns for free (the Starter Garage)

Guests

SettingDefaultWhat it does
Guests.EnabledtrueMembers can bring non-members inside
Guests.Radius10.0How close players must be to be invited
Guests.Max6Most guests per entry

Guards

Armed NPCs at the hideout entrance, one per level of the guards upgrade. See Hideout guards.

SettingDefaultWhat it does
Guards.EnabledtrueTurns hideout guards on or off
Guards.Models4 gang modelsPed models gangs can pick from. A guard with no pick uses one of these, the same one every restart
Guards.ModelLabelsVagos, The Lost MC, Ballas, FamiliesNames shown in the tablet for each model. Add a line for any model you add to Models
Guards.WeaponsWEAPON_PISTOL, WEAPON_MICROSMGWeapons picked at random
Guards.Ammo250Ammo per guard
Guards.Health / Guards.Armour200 / 50Toughness
Guards.Accuracy35Shooting accuracy (0 to 100)
Guards.CombatMovement2How guards move in a fight: 0 = stand still, 1 = hold position, 2 = push forward, 3 = keep their distance
Guards.CombatAbility2Combat skill: 0 = poor, 1 = average, 2 = professional
Guards.FiringPattern'FIRING_PATTERN_FULL_AUTO'How guards fire. Any GTA firing pattern name works, e.g. 'FIRING_PATTERN_BURST_FIRE'
Guards.Radius{ 3.0, 7.0 }How far from the entrance guards without a placed spot stand, in metres
Guards.PlaceRadius25.0How far from the entrance a gang can place a guard, in metres
Guards.AlertRange25.0Trespassers this close to the entrance are attacked
Guards.Targets'rivals''rivals' = members of other gangs, 'everyone' = anyone who is not in the gang
Guards.SpawnRange120.0Guards only stand while a player is this close
Guards.RespawnMinutes15A killed guard is replaced after this
Guards.NotifyAttacktrueOnline members are told when a guard is in a fight

Shells

SettingDefaultWhat it does
ShellsPurchasablefalsetrue lets gangs buy shell interiors on the tablet. false means only admins can assign shells
ShellDepth200.0Shells spawn this far below the gang's entrance. false spawns all shells at ShellAnchor
ShellAnchorvec3(0.0, 0.0, -200.0)Fixed shell position, used when ShellDepth is false
DefaultShell'warehouse'Shell used when a gang has none set. Needs K4MB1 Starter Shells

📚 Preset library

Presets show up in Admin → Interiors → Pick from the interior library. They fill in the interior details and door position for you.

GTA interiors (shared/hideout/interiors/gta.lua)

No extra resources needed. 17 interiors:

CategoryInteriors
ApartmentsLow-end, Mid-range
Garages2-car, 6-car, 10-car
WarehousesSmall, Medium, Large, Vehicle warehouse
CriminalClubhouse, Large clubhouse, Bunker, Meth lab, Weed farm, Coke lockup, Counterfeit cash, Document forgery

Adding your own GTA interior:

my_interior = {
    label = 'My Interior',
    category = 'Apartments',
    description = 'Short description',
    doorCoords = vec4(x, y, z, heading),   -- where players arrive
    ipl = 'ipl_name',                      -- optional
    entitySets = { 'set_one', 'set_two' }, -- optional
},

Shells (shared/hideout/shells/)

FileNeedsShells
k4mb1_starter.luaK4MB1-StarterShells14: warehouses, container, garage, office, store, apartments, houses, motel, hotel
k4mb1_illegal.luaK4MB1-IllegalOperationsPack12: coke, meth and weed labs, acid house, laundry, gun warehouse, stash houses, bunker silo

A shell pack is ignored while its resource isn't running.

Adding your own shell:

my_shell = {
    model = 'shell_model_name',
    label = 'My Shell',
    category = 'Houses',
    doorOffset = vec4(x, y, z, heading),   -- offset from the shell's centre
},

Presets are templates only. After picking one, set the desk, stash and wardrobe points and the price in Admin → Interiors.

On this page