Skip to content

๐Ÿฟโƒข๐Ÿ“บ FX-INTERACTIONS โ€‹

Advanced interaction system for RedM allowing players to interact with chairs, benches, beds, pianos, and baths with animations, prompts, and full framework compatibility.


๐Ÿ“ฆ INSTALLATION โ€‹

bash
ensure fx-interactions

โ€ข Place the script inside resources/fx-interactions โ€ข Add ensure fx-interactions to your server.cfg โ€ข Restart your server


โš™๏ธ BASIC CONFIG โ€‹

lua
Config.Language = "en"
Config.UseTarget = true
Config.PromptDistance = 2.0

โ€ข Language โ†’ system language โ€ข UseTarget โ†’ enables target system (ox_target / etc.) โ€ข PromptDistance โ†’ interaction distance if target is disabled


๐Ÿ’  PROP SYSTEM โ€‹

lua
Config.Chairs = { ... }
Config.Benches = { ... }
Config.Beds = { ... }

โ€ข Defines all interactable props โ€ข Supports chairs, benches, beds โ€ข System auto-detects nearby props


๐ŸŽฏ INTERACTION PROMPTS โ€‹

lua
Config.Prompts = {
    ["sit"] = {
        label = "Chair Interaction",
        distance = 3.0,
    }
}

โ€ข Defines interaction prompts โ€ข Supports hold key system โ€ข Multiple interaction menus available


๐Ÿง  SCENARIO SYSTEM โ€‹

lua
Config.ChairScenarios = {
    [1] = {name = "GENERIC_SEAT_BENCH_SCENARIO"},
}

โ€ข Defines available animations โ€ข Each interaction triggers a scenario โ€ข Supports male/female restrictions


๐Ÿ›๏ธ BED SYSTEM โ€‹

lua
Config.BedScenarios = {
    { name = 'PROP_HUMAN_SLEEP_BED_PILLOW' }
}

โ€ข Allows sleeping interactions โ€ข Multiple sleep animations โ€ข Supports ground and bedroll


๐ŸŽน PIANO SYSTEM โ€‹

lua
Config.PianoScenarios = {
    { name = 'PROP_HUMAN_PIANO' }
}

โ€ข Allows piano interactions โ€ข Multiple piano styles โ€ข Gender-based restrictions supported


๐Ÿ› BATH SYSTEM โ€‹

lua
Config.BathingAnimations = {
    { name = 'bathing_idle_02' }
}

โ€ข Bath interaction system โ€ข Includes scrub animations โ€ข Supports clean effects


๐Ÿงผ EFFECT SYSTEM โ€‹

lua
Config.Effects = {
    ['clean'] = function()
    }

โ€ข Applies effects after interaction โ€ข Example โ†’ removes dirt/blood โ€ข Fully customizable


๐Ÿ”„ POSITION SYSTEM โ€‹

lua
Config.PropOffsetOverrides = {
    ["p_bed20x"] = { x = 0.0, y = 0.0, z = 0.5 },
}

โ€ข Adjusts player position per prop โ€ข Fixes clipping issues โ€ข Allows precise alignment


๐ŸŽฏ TARGET SYSTEM โ€‹

lua
Config.UseTarget = true

โ€ข Enables target-based interaction โ€ข Supports multiple target systems โ€ข Auto-detection available


๐ŸŽฎ CONTROL SYSTEM โ€‹

lua
Config.DisableControls = {
    [0x26E9DC00] = true,
}

โ€ข Disables controls during interaction โ€ข Prevents breaking animations โ€ข Improves immersion


๐ŸŽจ VISUAL SYSTEM โ€‹

lua
Config.DrawMarker = { open = false }
Config.DrawLight = { open = true }
Config.DrawTexture = { open = true }

โ€ข Controls interaction visuals โ€ข Marker โ†’ ground indicator โ€ข Light โ†’ glow effect โ€ข Texture โ†’ UI marker


๐Ÿ“ท๐Ÿ‘ NPC / FAVORITES SYSTEM โ€‹

json
favorites.json

โ€ข Stores saved interaction presets โ€ข Allows custom interaction menus โ€ข Supports player preferences


๐Ÿ›๏ธ PROP POSITION CONFIG โ€‹

lua
Config.BedsOptions = { ... }
Config.BenchesOptions = { ... }

โ€ข Defines exact sitting/sleep positions โ€ข Supports left / right / middle selection โ€ข Fully customizable offsets


๐Ÿ”” NOTIFY SYSTEM โ€‹

lua
Notify({
  text = "Interaction Started",
  type = "success"
})

โ€ข Framework-based notification system โ€ข Supports VORP / RSG / REDEMRP


โš ๏ธ IMPORTANT NOTES โ€‹

โ€ข Props must exist in game world โ€ข Config lists must match prop names โ€ข Target system must be installed if enabled โ€ข Offsets may require adjustment per map โ€ข Some scenarios are gender-restricted


๐Ÿšจ COMMON MISTAKES โ€‹

โ€ข Interaction not working โ†’ wrong prop name โ€ข Player sitting in wrong position โ†’ offset not set โ€ข No interaction menu โ†’ target system missing โ€ข Animation not playing โ†’ invalid scenario name


๐Ÿ SUMMARY โ€‹

FX-INTERACTIONS provides:

โ€ข Full prop interaction system โ€ข Chair / bench / bed / piano / bath support โ€ข Scenario-based animations โ€ข Target & prompt system โ€ข Fully customizable interaction logic


ยฉ Fixitfy Development

โšก Premium RedM scripts crafted with performance & quality in mind.