Development Commands
getoffset
getoffset
Usage:
/getoffset [x] [y] [z]Permission: Admin (configurable)Description: Gets the offset coordinates for positioning items inside a shell. This is essential when creating custom presets.Parameters:x, y, z(optional) - World coordinates to convert to offset- If no parameters are provided, uses your current character position
- Lootable spots positions
- Prop placements
- Cash locations
- Safe positions
- Painting coordinates
- Display case positions
- High value item locations
- Tenant spawn points
- Pet spawn points
- Laser system positions
- Alarm box positions
- Enter a shell interior
- Stand at the location where you want to place an item
- Run
/getoffset - Paste the returned coordinates into your preset configuration
This command is crucial for creating accurate presets. See the Presets Guide for detailed information on using these coordinates.
polycreate
polycreate
Usage:
/polycreatePermission: Admin (configurable)Requirements: Config.PolyTool must be set to true in the main configDescription: Creates detection zones around tenants (NPCs) inside houses. This defines the area where tenants can detect players during robberies.Returns: Polyzone coordinates that can be used in tenant detection configurationUse Case: Use this command to create detection zones for tenants in your preset:- Enable
Config.PolyTool = truein config - Place a tenant NPC in the house
- Run
/polycreatenear the tenant - Walk around the area to define the detection boundaries
- Complete the zone creation (follow on-screen instructions)
- Paste the returned coordinates into your preset
See the Presets Guide for more information on tenant detection zones.
Administration Commands
lockhouse
lockhouse
Usage:
/lockhousePermission: Admin by default (can be configured for police)Description: Resets and re-locks the closest house to your character. This is useful for testing or when a robbery needs to be manually reset.Requirements: Must be standing outside near a house doorWhat it does:- Finds the closest house to your position
- Resets the house’s robbery state
- Locks the house doors
- Respawns all lootable items
- Resets all security systems (alarms, lasers)
- Removes any active tenants/pets
- Clears the house cooldown
- Testing house configurations after changes
- Manually resetting a bugged house
- Clearing a house after a failed robbery
- Admin intervention during police scenarios
- Resetting houses for events or testing
- A robbery gets stuck or bugged
- Admin goes to the house entrance
- Runs
/lockhouse - House is reset and ready for another robbery
This command is essential for server administration and testing. Make sure only trusted users have access to it.
Configuration
All commands respect your server’s permission system. By default:- Development Commands (
getoffset,polycreate): Admin only - Administration Commands (
lockhouse): Admin only (configurable for police)
Tips for Using Commands
Creating Presets
- Use getoffset extensively: When creating a new preset, use
/getoffsetfor every single item, spot, and prop position - Test as you go: After adding each item to your preset, restart the resource and test it in-game
- Document your work: Keep notes of what each coordinate represents while building presets
Setting Up Detection Zones
- Enable PolyTool first: Set
Config.PolyTool = truebefore using/polycreate - Walk the area: Create detection zones by walking the boundaries you want
- Test detection: After setting up zones, test them by entering as a player
- Adjust height: Set appropriate
ZoneHeightvalues based on the room’s ceiling height - Disable in production: Always set
Config.PolyTool = falsebefore going live
Testing Houses
- Use lockhouse for quick resets: Instead of waiting for cooldowns, use
/lockhouseto instantly reset - Test all security features: After using
/lockhouse, verify alarms, lasers, and detection zones work - Check loot spawning: Ensure all props, spots, and items respawn correctly after reset
Troubleshooting
getoffset not working
getoffset not working
Possible causes:
- Not inside a shell interior
- Incorrect admin permissions
- Command not registered properly
- Verify you’re inside a shell (not IPL)
- Check your admin permissions level
- Restart the resource
- Check server console for errors
polycreate not available
polycreate not available
Possible causes:
Config.PolyToolis set tofalse- Incorrect admin permissions
- ox_lib not properly installed
- Set
Config.PolyTool = truein config/main.lua - Verify admin permissions
- Ensure ox_lib is started before the resource
- Restart the resource after config changes
lockhouse doesn't find the house
lockhouse doesn't find the house
Possible causes:
- Standing too far from the house door
- House not properly configured
- Wrong coordinates in house config
- Stand directly at the door location
- Verify house exists in config/houses.lua
- Check door coordinates are correct
- Try moving closer to the entrance
Coordinates are offset incorrectly
Coordinates are offset incorrectly
Possible causes:
- Using world coordinates instead of offset coordinates
- Wrong interior type (Shell vs IPL)
- Preset doesn’t match the shell being used
- Always use
/getoffsetinside the shell, never world coordinates - Verify the shell name matches your preset name
- Double-check you’re using the correct shell model
- Test coordinates immediately after getting them
