๐ฟโข๐บ 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 โ
ensure fx-interactionsโข Place the script inside resources/fx-interactions โข Add ensure fx-interactions to your server.cfg โข Restart your server
โ๏ธ BASIC CONFIG โ
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 โ
Config.Chairs = { ... }
Config.Benches = { ... }
Config.Beds = { ... }โข Defines all interactable props โข Supports chairs, benches, beds โข System auto-detects nearby props
๐ฏ INTERACTION PROMPTS โ
Config.Prompts = {
["sit"] = {
label = "Chair Interaction",
distance = 3.0,
}
}โข Defines interaction prompts โข Supports hold key system โข Multiple interaction menus available
๐ง SCENARIO SYSTEM โ
Config.ChairScenarios = {
[1] = {name = "GENERIC_SEAT_BENCH_SCENARIO"},
}โข Defines available animations โข Each interaction triggers a scenario โข Supports male/female restrictions
๐๏ธ BED SYSTEM โ
Config.BedScenarios = {
{ name = 'PROP_HUMAN_SLEEP_BED_PILLOW' }
}โข Allows sleeping interactions โข Multiple sleep animations โข Supports ground and bedroll
๐น PIANO SYSTEM โ
Config.PianoScenarios = {
{ name = 'PROP_HUMAN_PIANO' }
}โข Allows piano interactions โข Multiple piano styles โข Gender-based restrictions supported
๐ BATH SYSTEM โ
Config.BathingAnimations = {
{ name = 'bathing_idle_02' }
}โข Bath interaction system โข Includes scrub animations โข Supports clean effects
๐งผ EFFECT SYSTEM โ
Config.Effects = {
['clean'] = function()
}โข Applies effects after interaction โข Example โ removes dirt/blood โข Fully customizable
๐ POSITION SYSTEM โ
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 โ
Config.UseTarget = trueโข Enables target-based interaction โข Supports multiple target systems โข Auto-detection available
๐ฎ CONTROL SYSTEM โ
Config.DisableControls = {
[0x26E9DC00] = true,
}โข Disables controls during interaction โข Prevents breaking animations โข Improves immersion
๐จ VISUAL SYSTEM โ
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 โ
favorites.jsonโข Stores saved interaction presets โข Allows custom interaction menus โข Supports player preferences
๐๏ธ PROP POSITION CONFIG โ
Config.BedsOptions = { ... }
Config.BenchesOptions = { ... }โข Defines exact sitting/sleep positions โข Supports left / right / middle selection โข Fully customizable offsets
๐ NOTIFY SYSTEM โ
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
