775709ddef
+ Added new Wheel-Damage script which causes wheels to fly off if the car is hit hard. + Added newer version of the police siren LVC menu. + Changed a bunch of keybinds in order to facilitate FivePD. + Readded the accidentally removed emote menu and removed NoDriveBy. + Updated the server theme alittle away from just RP. + Updated to server artifacts version to 6372
39 lines
1.1 KiB
Lua
39 lines
1.1 KiB
Lua
Config = {}
|
|
|
|
Config.FrameWork = "" -- ESX / QBCore / custom
|
|
|
|
Config.TriggerFix = false
|
|
Config.CommandFix = true
|
|
|
|
Config.TimeToDetachWheel = 1000
|
|
Config.TimeToAttachWheel = 5000
|
|
Config.KmMax = 175
|
|
|
|
Config.Lang = {
|
|
["StartFixWheel"] = 'Repair of the wheels thrown, please exit the vehicle',
|
|
["EnterInVehicleToFix"] = 'No vehicle found, please enter the vehicle to be repaired',
|
|
["PressToPickWheel"] = 'Press E to pick up the wheel',
|
|
["PressToFixWheel"] = 'Press E to fix the wheel',
|
|
["PlayerInVeh"] = 'There is someone in the vehicle'
|
|
}
|
|
|
|
Config.SendNotification = function(msg)
|
|
if Config.FrameWork == "ESX" then
|
|
ESX.ShowNotification(msg)
|
|
elseif Config.FrameWork == "QBCore" then
|
|
QBCore.Functions.Notify(msg, 'success')
|
|
elseif Config.FrameWork == "custom" then
|
|
print(msg)
|
|
end
|
|
end
|
|
|
|
Config.InitFrameWork = function()
|
|
if Config.FrameWork == "ESX" then
|
|
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
|
elseif Config.FrameWork == "QBCore" then
|
|
QBCore = exports['qb-core']:GetCoreObject()
|
|
elseif Config.FrameWork == "custom" then
|
|
|
|
end
|
|
end
|