What Are Presets?
Presets are pre-configured house interiors that you can easily add to your server. The House Robbery V2 resource includes apresets folder where you can simply drag and drop preset files shared by the community in our Discord’s Snippets channel.
Join our Discord at discord.gg/projectxdev and check the Snippets channel for community-shared presets!
How to Use Presets
- Download a preset file from the Discord Snippets channel
- Place the preset file in the
presetsfolder of your House Robbery V2 resource - Restart the resource or your server
- The preset will automatically load and be available for use
When creating custom presets, use the
/getoffset command to get accurate coordinates for all items, spots, and props inside shells. See the Commands page for details.Preset Structure
Here’s a complete example of a preset with all possible options:Function Parameters
Unique identifier for the house. Must match the house name configured in your housing script
Configuration Options
ExitCoords
Coordinates where the player will exit the house interior. Includes position (x, y, z) and heading (w)
Spots
Searchable spots in the house that can be looted for random items.Type of spot being searched. Examples:
"drawer", "cabinet", "kitchen", "closet", "bathroom"Animation played when searching the spot. Can use
Dict and Anim properties OR Scenario property (use one or the other)Props
Stealable props that spawn in the house and can be looted for specific items.Animation played when stealing the prop. Can use
Dict and Anim properties OR Scenario propertyCash
Props that contain cash or marked bills.Animation played when stealing cash. Can use
Dict and Anim properties OR Scenario propertySafe
Safes that require cracking and contain valuable loot. Example:Painting
Paintings that can be stolen from walls. Example:Display
Glass display cases containing valuable items. Example:HighValueItems
High value items that can be stolen from the house. Example:Tenants
NPCs that live in the house and can detect the player. Example:Pets
Animals in the house that can alert tenants. Example:Laser
Laser security system that must be disabled. Example:Alarms
Alarm system that can be disabled. Example:Contracts
Special contracts that can spawn in the house. Example:Creating Your Own Preset
When creating your own preset:- Start with the basic structure using
LoadHousePreset() - Add the
ExitCoords(required) - Use
/getoffsetcommand while inside the shell to get accurate coordinates for each item - Add any of the optional sections you want (Spots, Props, Cash, etc.)
- For tenant detection zones, enable
Config.PolyTooland use/polycreatecommand - Test in-game to ensure all coordinates and rotations are correct
- Share your preset in the Discord Snippets channel for others to use!
Pro Tip: Use
/getoffset for every single position in your preset. This ensures items spawn exactly where you want them inside the shell interior.Using Development Commands
/getoffset: Stand at the desired location inside the shell and run this command to get the offset coordinates/polycreate: Create detection zones around tenants by defining the area boundaries
