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
| Command | Arguments | Description |
|---|---|---|
/lockitem | kind id drawable rule [gender] [texture] | Restrict a garment by explicit numeric IDs. |
/lockworn | kind id rule [gender] [texture] | Restrict whatever garment you are currently wearing in that slot. |
/unlockitem | kind 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:componentorprop.id: the component/prop slot id (e.g.11for tops,0for 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 gradejob:police:2: restricted to the police job, grade 2 or abovecid:ABC12345: restricted to one citizen IDnone: blacklisted outright from purchase/wear
gender:male,female, orany(default:any).texture: omit to lock all colour variations. On/lockworn, passexactto 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.