Skip to main content

Des AFK Cinematic Script

Preview

Need Support?

Join our discord - https://discord.gg/yknzKKtpHF

Configuration

Config.afkTime = 15 -- Time in minutes before a player is considered AFK. Default is 15 minutes.
Config.cinematicInterval = 10 -- Time in seconds between camera transitions
Config.fadeInAndOutEnabled = true -- Enable or disable fade in and out effects
Config.cinematicBarsEnabled = true -- Enable or disable cinematic bars

Config.enableMusic = true -- Enable or disable background music during cinematic. You can also change the music file in the ui/music folder, replace the music.mp3 with your own song.
Config.musicVolume = 0.1 -- Volume level for the background music (0.0 to 1.0)

Config.enableAnimations = true -- Enable or disable random animations during cinematic
-- You can change this list as you like and find more animations here - https://forge.plebmasters.de/animations/
Config.animations = {
{"anim@amb@nightclub@dancers@club_ambientpeds@", "mi_dance_facedj_17_v2_male^6"}, --{Dictionary Name, Animation Name}
{"anim@mp_player_intcelebrationfemale@air_guitar", "air_guitar"},
{"anim@mp_player_intcelebrationfemale@air_synth", "air_synth"},
{"anim@mp_player_intcelebrationmale@face_palm", "face_palm"},
{"anim@mp_player_intcelebrationmale@finger_kiss", "finger_kiss"},
{"anim@mp_player_intupperjazz_hands", "idle_a"},
}

-- Don't change unless you know what you're doing, adding more keys may have an impact on performance - https://docs.fivem.net/docs/game-references/controls/#controls
Config.inputsToCheck = {
0, -- Change Camera
32, -- INPUT_MOVE_UP_ONLY
34, -- INPUT_MOVE_LEFT_ONLY
33, -- INPUT_MOVE_DOWN_ONLY
35, -- INPUT_MOVE_RIGHT_ONLY
44, -- INPUT_COVER
21, -- INPUT_SPRINT
22, -- INPUT_JUMP
24, -- INPUT_ATTACK
26, -- INPUT_AIM
}

Performance

  • 0.00 ms on idle
  • 3.00 ms spike on init
  • 1.00 ms spike per transition

Song Credits

Song: breathe - Desypher

Updates

1.0:

  • Released
  • Configuration AFK time and transition times
  • Configurable Background Music
  • Configurable Animations