config.lua
tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()
config.defaultVolume = 0.5
config.musicMaxDistance = 8.0 -- Maximum distance for music emotes
config.cooldown = 1000 -- Cooldown in milliseconds for playing animations
config.propDefaultNoCollision = true -- Default no collision for spawned props
config.emojiDuration = 10000 -- Default duration for emojis in milliseconds
config.playAnimationWhileDead = false -- Allow playing animations while dead or unconscious
config.enableIdleAnimations = true -- Enable idle animations when waiting
config.idleAnimationPlayBeforeWait = 30000 -- Time in milliseconds before idle animation plays when waiting
config.clearAnimationsOnStartNew = false -- Clear animations when stopping an animation (It stops the previous animation before starting a new one. If it's false, the animations can merge.)
config.canPlaySharedAnimationsAsSolo = true -- Allow playing shared animations alone without a target player
config.abuseableAnimationsDisabled = true -- Disable animations that can be abused (e.g., fast wlalking etc.)
config.adultAnimationsDisabled = false -- Disable adult emotes in the emote menu (Such animations may cause your server to be banned by FiveM)
config.showFullNameClosestPlayer = true -- Show full name (first and last) of the closest player in the emote context menu
config.spawnPropsOnServer = false -- Spawn props on the server side
-- If the animation being played becomes corrupted, play it again.
-- (Example: If you pass through a doorway while carrying a box, the animation in the hands of the carrying character will be disrupted. If this setting is true, it will replay the animation when this happens.)
config.rePlayAnimationWhenCorrupted = false
config.disablePlayAnimWhenDamageTaken = {
active = false, -- Disable playing animations when the player takes damage
disableSeconds = 60, -- How many seconds will the animations be disabled after taking damage?
}
config.defaultBlendSpeed = {
inSpeed = 8.0,
outSpeed = 8.0,
}
config.handsUp = {
active = true,
key = "X",
disabledControls = {
-- https://docs.fivem.net/docs/game-references/controls/
23, 36, 44, 53, 54, 59, 60, 61, 62, 63, 64, 65, 66, 67, 69, 70, 74, 75, 77, 78, 80, 86, 91,
102, 104, 105, 136, 137, 139, 140, 141, 142, 143, 337, 338, 339, 340, 341, 342, 343, 351, 354,
357, 345, 346, 347,
},
enableInCar = true,
animations = { dict = "random@mugging3", anim = "handsup_standing_base", flag = 49 },
}
config.emoteHotekey = {
active = true,
firstKey = "LSHIFT",
emoteKeys = {
"NUMPAD1", -- Emote 1
"NUMPAD2", -- Emote 2
"NUMPAD3", -- Emote 3
"NUMPAD4", -- Emote 4
"NUMPAD5", -- Emote 5
"NUMPAD6", -- Emote 6
"NUMPAD7", -- Emote 7
"NUMPAD8", -- Emote 8
"NUMPAD9", -- Emote 9
"NUMPAD0" -- Emote 10
}
}
-- citizenid: QB: citizenid, ESX: identifier
---@type false | "serverid" | "citizenid"
config.contextSharedIdType = "serverid"
---@type "hold" | "toggle"
config.defaultWheelKeyMode = "hold" -- Default key mode for wheel menu ("hold" or "toggle")
config.playCommand = {
name = "e",
active = true,
}
config.customAssetsUrl = {
gif = {
active = true,
url = "https://r2.fivemanage.com/AyfXfopYqbtQfD1kCdS0X",
}
}
config.gifCreate = {
normal = {
ped = `a_f_y_hipster_01`,
cam = {
zoom = 50.0,
distance = 2.0,
}
},
expression = {
ped = `mp_m_freemode_01`,
cam = {
zoom = 50.0,
height = 0.67,
distance = 0.3,
}
},
shared = {
ped = `ig_tomcasino`,
otherPed = `mp_f_boatstaff_01`,
cam = {
zoom = 50.0,
distance = 2.0,
angle = 70.0,
},
}
}
config.ragdoll = {
active = true,
key = "M",
hold = false, -- If true, player needs to hold the key to stay in ragdoll
}
config.pointing = {
active = true,
key = "B",
}
config.scenarioObjects = {
`p_amb_coffeecup_01`,
`p_amb_joint_01`,
`p_cs_ciggy_01`,
`p_cs_ciggy_01b_s`,
`p_cs_clipboard`,
`prop_curl_bar_01`,
`p_cs_joint_01`,
`p_cs_joint_02`,
`prop_acc_guitar_01`,
`prop_amb_ciggy_01`,
`prop_amb_phone`,
`prop_beggers_sign_01`,
`prop_beggers_sign_02`,
`prop_beggers_sign_03`,
`prop_beggers_sign_04`,
`prop_bongos_01`,
`prop_cigar_01`,
`prop_cigar_02`,
`prop_cigar_03`,
`prop_cs_beer_bot_40oz_02`,
`prop_cs_paper_cup`,
`prop_cs_trowel`,
`prop_fib_clipboard`,
`prop_fish_slice_01`,
`prop_fishing_rod_01`,
`prop_fishing_rod_02`,
`prop_notepad_02`,
`prop_parking_wand_01`,
`prop_rag_01`,
`prop_scn_police_torch`,
`prop_sh_cigar_01`,
`prop_sh_joint_01`,
`prop_tool_broom`,
`prop_tool_hammer`,
`prop_tool_jackham`,
`prop_tennis_rack_01`,
`prop_weld_torch`,
`w_me_gclub`,
`p_amb_clipboard_01`
}
config.moneyTypeList = {
bank = "$",
cash = "Cash",
}
config.keys = {
openUi = "PAGEDOWN",
emoteWheel = "F4",
cancelAnimation = "X",
uiCancelKeyCode = "KeyX",
}
-- Dont change these values
config.animations = {}
config.langs = {}
Last updated