Skip to content

📍 3D Props & Workbenches Engine ​

No need to open map editors or create custom .ymap files! DynaDev Crafting System includes a distance-based physical 3D prop streaming engine.


🚀 How Prop Streaming Works ​

  • Dynamic Spawning: Props spawn when a player approaches within 65 meters and cleanly despawn beyond 85 meters to preserve memory and client FPS.
  • Precise Placement: Unlike native spawning functions that drop entities through custom interior (MLO) floors, DynaDev Crafting respects your exact Z coordinate.
    • Use snapToGround = false inside interiors or elevated surfaces.
    • Use snapToGround = true only on wild outdoor natural terrain.
  • Hot-Reload Safe: If you change a prop model from 'p_tablewood01x' to 'p_anvil01x' in config.lua, the engine removes the old entity and spawns the new model immediately without requiring server restarts.

đŸ› ī¸ Workbench Schema Examples ​

Defined inside Config.Workbenches in config/config.lua:

1. Valentine Blacksmith Forge & Anvil ​

lua
{
    id           = 'smithy_valentine',
    label        = 'Blacksmith Forge & Anvil',
    coords       = vector3(-279.16, 807.79, 119.36),
    heading      = 180.0,
    prop         = 'p_anvil01x',         -- Streams a physical 3D steel anvil
    snapToGround = false,                -- Respects exact Z coordinate
    categories   = { 'smithing' },       -- Whitelisted recipe categories
    jobs         = { 'blacksmith' },     -- Only blacksmiths can access
    xpScope      = 'personal',           -- Awards character XP
    bookTitle    = 'FORGE & ANVIL LEDGER',
    bookSubtitle = 'Master Metallurgy, Blacksmithing & Hardware â€ĸ 1899',
    bookIcon     = 'fa-hammer',
    blip         = { enable = true, Hash = 'blip_shop_blacksmith' },
}

2. Thieves Landing Outlaw Explosives Cache ​

lua
{
    id           = 'criminal_thieves',
    label        = 'Thieves Landing Outlaw Cache',
    coords       = vector3(-1408.85, -2313.15, 43.15),
    heading      = 130.0,
    prop         = 'p_crate01a',         -- Explosives munitions crate
    categories   = { 'criminal' },
    jobs         = 0,                    -- Open to all outlaws without job locks
    xpScope      = 'personal',
    theme        = 'criminal',           -- Enables dark outlaw leather theme & metal brackets
    bookTitle    = 'DEMOLITIONS & SABOTAGE',
    bookSubtitle = 'Blasting Explosives, Fire Bottles & Detonators â€ĸ 1899',
    bookIcon     = 'fa-bomb',
    blip         = { enable = false },   -- Hidden from radar map for secrecy
}

Developed with passion by Dynamic Development.