1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[police]/cs_drunk/config/config.lua
2025-08-13 14:27:28 +02:00

70 lines
No EOL
1.8 KiB
Lua

Config = {}
-- 'QB' = For QBCore Framework
-- 'ESX' = For ESX Framework
-- false = For Standalone
Config.ServerType = 'QB' --['QB'|'ESX'|false]
Config.OpenUI = {
useCommand = false,
Command_Name = 'atest',
useItem = true, --Enable ServerType in sv_function.lua
Item_Name = 'breathalyzer'
}
Config.Wait_TIme = 2 --Blower Waiting Time in seconds
Config.Animations = {
Enable = true,
Tester_Prop = `prop_inhaler_01`,
Share_Anim = 'package_dropoff',
Share_Dict = 'mp_safehouselost@',
Use_Anim = 'loop',
Use_Dict = 'mp_player_inteat@pnq'
}
Config.DrunkLevel = {
[25] = 'green', --Low Value [25 means upto 25 is low value of drunk]
[70] = 'yellow', --Mid Value
[100] = 'red' --High Value
}
Config.DrunkSettings = {
Enable = true, --Enble/Disable Drunk Value Deductions after certain time
Reduce_Interval = 0.5, --This will reduce alcholic level after certain minutes (In Minutes)
Reduce_Level = 2 --Reduce Level
}
Config.DrunkEffect = false --Enble/Disable Drunk Effect
Config.Effect_Interval = {
--You can add more stages if you want
[10] = { --Drunk Level at which this Effect will occur
Enable = true, --Enable/Disable Stage
Animation = 'move_m@drunk@a' --WalkStyle
},
[40] = {
Enable = true,
Animation = 'move_m@drunk@moderatedrunk'
},
[80] = {
Enable = true,
Animation = 'move_m@drunk@slightlydrunk'
},
[95] = { --Heavy Drunk Max Stage
Enable = true,
Animation = 'move_m@drunk@verydrunk'
},
}
----Language Editor----
Config.Language = {
wait_blow = 'WAIT',
blow_txt = 'BLOW',
tester_share = 'Alchohol Tester Given to Nearby Player',
tester_smoke = 'Tell Nearest Player to Blow Air'
}