🛠️ Fix Interactable Points
This guide explains how to use the FixShellOffsets configuration option to fix interactable points that are incorrectly positioned on the Z-axis (vertical axis) in shell properties.
What is FixShellOffsets?
The FixShellOffsets feature is a migration tool designed to fix interactable points (such as inventory, wardrobe, etc.) that are positioned incorrectly on the Z-axis in shell properties. This issue can occur when upgrading from older versions of nolag_properties to version 2.4.0 or later.
When to Enable FixShellOffsets
Enable this feature if:
- You are upgrading from an older version to 2.4.0+ - this is a one-time migration that should be run after updating.
- Interactable points are positioned incorrectly - if you notice that interactable points (inventory, wardrobe, etc.) appear higher or lower than they should be in shell properties.
- Points are floating or underground - when interactable points are not aligned with the shell's interior floor level.
Configuration
Enable the feature in your config.lua:
FixShellOffsets = true, -- Enable the shell offsets fixHow to Use
- 1
Enable the Configuration
Make sure
FixShellOffsetsis set totruein yourconfig.luafile. - 2
Restart the Resource
Restart the
nolag_propertiesresource to load the configuration:Server consolerestart nolag_properties - 3
Run the Fix Command In-Game
Join your server and run the command in-game (chat or F8 console):
In-game command/getShellOffsetsFixedThis command will:
- Spawn all shell types at the configured Z-level (
Config.ShellZLevel) - Calculate the offset difference between shells spawned with and without offset
- Automatically send the calculated offsets to the server
- Fix all shell properties with incorrect interactable point positions
Note: The command will spawn shells temporarily to calculate offsets. This may cause brief visual effects in-game.
- Spawn all shell types at the configured Z-level (
- 4
Wait for Completion
The command will process all shell properties and fix their interactable points. You'll see progress messages in the server console:
Server console outputFixing offsets for all properties Updated offset for point X in property Y with coords {...} Finished fixing offsets for all propertiesYou'll also receive an in-game notification when the process completes.
- 5
Disable the Feature (Optional)
After successfully running the fix, you can disable
FixShellOffsetsin your config:config.luaFixShellOffsets = false, -- Disable after migration is complete
What Gets Fixed
The fix command:
- Processes all properties with type
shell - Updates interactable points that have
coordsstored (old format) - Converts them to use
offsetformat (new format) - Applies the correct shell offset to ensure points are positioned correctly on the Z-axis
- Saves the updated property metadata to the database
Troubleshooting
Related Commands
/getShellOffsetsFixed- In-game command to calculate shell offsets and automatically fix all shell properties (only available whenFixShellOffsetsis enabled)