Des AFK Cinematics [Qbox/QBCore/Standalone]
An idle/AFK cinematic script with configurable animations, cinematic bars, AFK timer and background music!
Configuration
Config = {}
--[[
Des AFK Cinematic Script
Splicing up your AFK experience!
Song used:
Song: breathe - Desypher
Stream: https://distrokid.com/hyperfollow/desypher/breathe
Watch: https://www.youtube.com/watch?v=_FSyDS1B7B4
Copyright (C) 2025 Desypher
All rights reserved.
--]]
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.00ms idle
3.00ms on transitions
Code is accessible | Partially Escrowed |
Subscription-based | No |
Lines (approximately) | 359 Lines |
Requirements | None |
Support | Yes |