forked from Simnation/Main
472 lines
No EOL
12 KiB
Lua
472 lines
No EOL
12 KiB
Lua
Config = {}
|
|
|
|
Config.Framework = 'qb-core' -- 'qb-core', 'qbx_core', 'es_extended'
|
|
Config.Locale = 'en'
|
|
Config.Interaction = 'ox_target' -- 'qb-target', 'ox_target', 'drawtext'
|
|
Config.Inventory = 'qb-inventory' -- 'qb-inventory', 'lj-inventory', 'ps-inventory', 'tgiann-inventory', 'ox_inventory', 'codem-inventory'
|
|
|
|
Config.DisableCollision = false
|
|
Config.ChargeSystem = true
|
|
Config.ChargePrice = 100
|
|
|
|
Config.LoseConnectionDistance = 100.0
|
|
Config.FindAPlayerDistance = 200.0
|
|
Config.MinimumBattery = 5
|
|
Config.NitrousPower = 1.2
|
|
Config.SignalBooster = 1.25
|
|
Config.BatterySaving = 0.75
|
|
|
|
Config.ChargingProcess = {
|
|
Charging = {
|
|
Time = 1,
|
|
Increasing = 1,
|
|
},
|
|
Disappearing = {
|
|
Time = 60 * 2,
|
|
Decreasing = 1,
|
|
},
|
|
}
|
|
|
|
Config.VehicleKeys = "qb-vehiclekeys"
|
|
Config.SkinTable = 'playerskins'
|
|
|
|
Config.BlipSettings = {
|
|
Vehicle = {
|
|
active = true,
|
|
sprite = 561,
|
|
color = 13,
|
|
scale = 0.7,
|
|
name = 'RC Car',
|
|
}
|
|
}
|
|
|
|
Config.Animation = {
|
|
['pickup_object'] = {
|
|
dict = 'pickup_object',
|
|
anim = 'pickup_low',
|
|
},
|
|
['put_object'] = {
|
|
dict = 'pickup_object',
|
|
anim = 'pickup_low',
|
|
},
|
|
['controller'] = {
|
|
dict = 'stand_controller@dad',
|
|
anim = 'stand_controller_clip',
|
|
}
|
|
}
|
|
|
|
Config.ControllerObject = 'prop_controller_01'
|
|
|
|
Config.Controls = {
|
|
ToggleCamera = 194,
|
|
ResetCamera = 45,
|
|
CameraRotations = {
|
|
left = 174,
|
|
right = 175,
|
|
up = 172,
|
|
down = 173,
|
|
},
|
|
CameraZoom = {
|
|
zoom = 14,
|
|
out = 15,
|
|
},
|
|
InteractionKey = {
|
|
key = 38,
|
|
text = 'E',
|
|
},
|
|
NitrousKey = 21,
|
|
JumpKey = 22,
|
|
OpenPluginsMenu = 199,
|
|
ChangeCameraFilter = 10,
|
|
}
|
|
|
|
Config.Stores = {
|
|
[1] = {
|
|
name = 'RC Store',
|
|
ped = 'a_m_y_bevhills_02',
|
|
coords = vector4(82.07, -219.86, 54.64, 342.31),
|
|
jobs = 'all',
|
|
blip = {
|
|
active = true,
|
|
sprite = 500,
|
|
color = 2,
|
|
scale = 0.7,
|
|
name = 'RC Store',
|
|
},
|
|
items = 'all',
|
|
}
|
|
}
|
|
|
|
Config.Charges = {
|
|
[1] = {
|
|
name = 'RC Charging Station',
|
|
ped = 'a_m_m_prolhost_01',
|
|
coords = vector4(-658.69, -854.82, 24.51, 3.15),
|
|
jobs = 'all',
|
|
blip = {
|
|
active = true,
|
|
sprite = 354,
|
|
color = 3,
|
|
scale = 0.7,
|
|
name = 'RC Charging Station',
|
|
},
|
|
},
|
|
}
|
|
|
|
Config.Categorys = {
|
|
{
|
|
id = 'all',
|
|
name = 'All',
|
|
},
|
|
{
|
|
id = 'sport',
|
|
name = 'Sport',
|
|
},
|
|
{
|
|
id = 'super-sport',
|
|
name = 'Super Sport',
|
|
},
|
|
{
|
|
id = '4x4',
|
|
name = '4x4',
|
|
},
|
|
{
|
|
id = 'emergency',
|
|
name = 'emergency',
|
|
},
|
|
}
|
|
|
|
Config.RCCars = {
|
|
[1] = {
|
|
item = {
|
|
name = 'rc_monster',
|
|
label = 'RC Monster',
|
|
description = '4x4 RC Car perfect for off-road and high altitudes',
|
|
price = 500,
|
|
type = 'vehicle',
|
|
category = '4x4',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcmonster',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[2] = {
|
|
item = {
|
|
name = 'rc_ruiner',
|
|
label = 'RC Ruiner',
|
|
description = 'It is the fastest and most agile of the rc vehicles in the super sports category.',
|
|
price = 750,
|
|
type = 'vehicle',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcruiner',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[3] = {
|
|
item = {
|
|
name = 'rc_sultanrs',
|
|
label = 'RC Sultan RS',
|
|
description = 'It is the fastest and most agile of the rc vehicles in the super sports category.',
|
|
price = 1000,
|
|
type = 'emergency',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcsultanrs',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[4] = {
|
|
item = {
|
|
name = 'rc_bandito',
|
|
label = 'RC Bandito',
|
|
description = '4x4 RC Car perfect for off-road and high altitudes',
|
|
price = 1000,
|
|
type = 'vehicle',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcbandito',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[5] = {
|
|
item = {
|
|
name = 'rc_bandito_offroad',
|
|
label = 'RC Bandito Offroad',
|
|
description = '4x4 RC Car perfect for off-road and high altitudes',
|
|
price = 1000,
|
|
type = 'vehicle',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcbandito',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[6] = {
|
|
item = {
|
|
name = 'rc_bandito_trophy',
|
|
label = 'RC Bandito Trophy',
|
|
description = '4x4 RC Car perfect for off-road and high altitudes',
|
|
price = 1000,
|
|
type = 'vehicle',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcbandito',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[7] = {
|
|
item = {
|
|
name = 'rc_bandito_gang',
|
|
label = 'RC Bandito Gang',
|
|
description = 'Special sticker rc vehicle for gangs',
|
|
price = 1000,
|
|
type = 'vehicle',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcbandito',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
[8] = {
|
|
item = {
|
|
name = 'rc_bandito_big',
|
|
label = 'RC Bandito Big Brat',
|
|
description = 'A rc vehicle specially designed for law enforcement agencies and with secret features',
|
|
price = 1000,
|
|
type = 'emergency',
|
|
category = 'emergency',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcbandito',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = {
|
|
police = true,
|
|
ambulance = true,
|
|
},
|
|
},
|
|
[9] = {
|
|
item = {
|
|
name = 'rc_bandito_midnight',
|
|
label = 'RC Bandito Midnight',
|
|
description = 'Rc truck built as 4x4 easily overcomes many challenges',
|
|
price = 1000,
|
|
type = 'vehicle',
|
|
category = 'sport',
|
|
},
|
|
vehicle = {
|
|
prop = 'rcbandito',
|
|
istatistics = {
|
|
speed = 150,
|
|
control = 200,
|
|
brake = 175,
|
|
},
|
|
},
|
|
jobs = 'all',
|
|
},
|
|
}
|
|
|
|
Config.RCCrafts = {
|
|
[1] = {
|
|
item = {
|
|
name = 'rc_advancedcamera',
|
|
label = 'Advanced Camera',
|
|
description = 'Offers features such as Night Vision and thermal camera',
|
|
price = 100,
|
|
time = 1,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
[2] = {
|
|
item = {
|
|
name = 'rc_nitrous',
|
|
label = 'Nitrous',
|
|
description = 'Ideal for accelerating your car',
|
|
price = 100,
|
|
time = 5,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
[3] = {
|
|
item = {
|
|
name = 'rc_battery',
|
|
label = 'Battery',
|
|
description = 'You want to extend battery life?',
|
|
price = 100,
|
|
time = 5,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
[4] = {
|
|
item = {
|
|
name = 'rc_bomb',
|
|
label = 'Bomb',
|
|
description = 'I think it was built for a bomb attack.',
|
|
price = 100,
|
|
time = 5,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
[5] = {
|
|
item = {
|
|
name = 'rc_signal',
|
|
label = 'Signal Booster',
|
|
description = 'Enforce boundaries and recognize barriers',
|
|
price = 100,
|
|
time = 5,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
[6] = {
|
|
item = {
|
|
name = 'rc_jump',
|
|
label = 'Jump',
|
|
description = 'Easily pass through high places',
|
|
price = 100,
|
|
time = 5,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
[7] = {
|
|
item = {
|
|
name = 'rc_teaser',
|
|
label = 'Teaser',
|
|
description = 'You want to punish people but without using bullets?',
|
|
price = 100,
|
|
time = 5,
|
|
},
|
|
jobs = 'all',
|
|
resources = {
|
|
screw = 1,
|
|
silver = 1,
|
|
},
|
|
},
|
|
}
|
|
|
|
Config.SetInvBusy = function(state)
|
|
if state then
|
|
LocalPlayer.state:set('inv_busy', true, true)
|
|
-- LocalPlayer.state.invBusy = true -- For Ox Inventory
|
|
-- LocalPlayer.state.invHotkeys = true -- For Ox Inventory
|
|
-- LocalPlayer.state.canUseWeapons = true -- For Ox Inventory
|
|
else
|
|
LocalPlayer.state:set('inv_busy', false, true)
|
|
-- LocalPlayer.state.invBusy = false -- For Ox Inventory
|
|
-- LocalPlayer.state.invHotkeys = false -- For Ox Inventory
|
|
-- LocalPlayer.state.canUseWeapons = false -- For Ox Inventory
|
|
end
|
|
end
|
|
|
|
Config.SetHudDisplay = function(state)
|
|
if state then
|
|
-- exports['0r-hud-v3']:SetHudDisplay(false)
|
|
else
|
|
-- exports['0r-hud-v3']:SetHudDisplay(true)
|
|
end
|
|
end
|
|
|
|
Config.GiveKeys = function(plate, vehicleEntity)
|
|
if not DoesEntityExist(vehicleEntity) then return false end
|
|
|
|
if not plate or plate == "" then
|
|
return false
|
|
end
|
|
|
|
plate = plate:upper()
|
|
|
|
if Config.VehicleKeys == "qb-vehiclekeys" then
|
|
TriggerEvent("vehiclekeys:client:SetOwner", plate)
|
|
elseif Config.VehicleKeys == "jaksam-vehicles-keys" then
|
|
TriggerServerEvent("vehicles_keys:selfGiveVehicleKeys", plate)
|
|
elseif Config.VehicleKeys == "mk_vehiclekeys" then
|
|
exports["mk_vehiclekeys"]:AddKey(vehicleEntity)
|
|
elseif Config.VehicleKeys == "qs-vehiclekeys" then
|
|
local model = GetEntityArchetypeName(vehicleEntity)
|
|
exports["qs-vehiclekeys"]:GiveKeys(plate, model)
|
|
elseif Config.VehicleKeys == "wasabi_carlock" then
|
|
exports.wasabi_carlock:GiveKey(plate)
|
|
elseif Config.VehicleKeys == "cd_garage" then
|
|
TriggerEvent("cd_garage:AddKeys", plate)
|
|
elseif Config.VehicleKeys == "okokGarage" then
|
|
TriggerServerEvent("okokGarage:GiveKeys", plate)
|
|
elseif Config.VehicleKeys == "t1ger_keys" then
|
|
TriggerServerEvent("t1ger_keys:updateOwnedKeys", plate, true)
|
|
elseif Config.VehicleKeys == "MrNewbVehicleKeys" then
|
|
exports.MrNewbVehicleKeys:GiveKeys(vehicleEntity)
|
|
elseif Config.VehicleKeys == "Renewed" then
|
|
exports["Renewed-Vehiclekeys"]:addKey(plate)
|
|
elseif Config.VehicleKeys == "tgiann-hotwire" then
|
|
exports["tgiann-hotwire"]:GiveKeyVehicle(vehicleEntity, true)
|
|
end
|
|
end |