Kartik Scripts

Item Lock Commands

Restrict individual clothing garments by job, minimum grade, citizen ID, or blacklist them completely.

[!TIP] You do not need these commands. Everything below is also available in the LOCK EDITOR at the top of any clothing shop's garment grid, click the pencil on a garment, tick Blacklist entirely or add job/citizen rules, and save. See Item Locks & Restricted Clothing for that walkthrough. These commands write the same rows, and are handy for bulk edits, the server console, and scripting.


💡 Command List

CommandArgumentsDescription
/lockitemkind id drawable rule [gender] [texture]Restrict a garment by explicit numeric IDs.
/lockwornkind id rule [gender] [texture]Restrict whatever garment you are currently wearing in that slot.
/unlockitemkind id drawable [gender] [texture]Remove the lock and every rule under it for a garment.
/itemlocks-Print all registered item locks to the server console.

All four are admin-only, and the permission is re-checked server side inside the handler, not just on the command name.


Argument Reference

  • kind: component or prop.
  • id: the component/prop slot id (e.g. 11 for tops, 0 for hats).
  • drawable: the garment id. Arm the LOCK EDITOR in-game to see ids printed on every tile.
  • rule:
    • job:police: restricted to the police job, any grade
    • job:police:2: restricted to the police job, grade 2 or above
    • cid:ABC12345: restricted to one citizen ID
    • none: blacklisted outright from purchase/wear
  • gender: male, female, or any (default: any).
  • texture: omit to lock all colour variations. On /lockworn, pass exact to lock only the worn colour.

Running /lockitem again with a different rule adds a rule to the same garment. Rules OR together, so a garment with job:police:2 and cid:ABC12345 is wearable by police grade 2+ and by that citizen.

Examples

/lockworn component 11 job:police:2
/lockworn component 11 job:police:2 male exact
/lockitem prop 0 15 cid:ABC12345
/lockitem component 11 200 none
/unlockitem component 11 84 male
/itemlocks

[!WARNING] Drawable ids differ between the male and female peds. Lock from the body you read the garment on, or you may restrict an unrelated garment on the other body.

On this page