HexscriptsVersion 1.0Container
Configurations
Here you will get all configurations & open source files that are included within this script.
Config Files
Config = {}
Config.Locale = 'de'
Config.Positions = {
{
coords = vector3(-937.5156, -379.7287, 38.9613),
distance = 1.0,
marker = {
enabled = true,
type = 0,
scale = vector3(0.5, 0.5, 0.5),
bobUpAndDown = false,
rotate = false,
color = { red = 255, green = 0, blue = 0, alpha = 100 }
},
blip = {
enabled = true,
sprite = 681,
color = 1,
scale = 0.8,
display = 2,
short = true,
text = 'Case & Container'
},
}
}
-- Type can be money | item | bank_money | black_money | vehicle
-- If you add Type vehicle in the array must be vehicleType be added that can be car | heli | boat for example.
Config.Case = {
{
name = 'money',
label = '100.000 $',
type = 'money',
amount = 100000,
chance = 5.55
},
{
name = 'money2',
label = '50.000 $',
type = 'money',
amount = 50000,
chance = 5.55
},
{
name = 'money3',
label = '25.000 $',
type = 'money',
amount = 25000,
chance = 5.55
},
{
name = 'WEAPON_PISTOL',
label = 'Pistole',
type = 'weapon',
amount = 250,
chance = 5.55
},
{
name = 'bulletproof',
label = 'Westen 10x',
type = 'item',
amount = 10,
chance = 5.55
},
{
name = 'longfin',
label = 'longfin',
type = 'vehicle',
vehicleType = 'boat',
amount = 1,
chance = 5.55
},
{
name = 'patriot2',
label = 'Limo',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 5.55
},
{
name = 'M140i',
label = 'BMW 140',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 5.55
},
{
name = '17m760i',
label = 'BMW 760',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 5.55
},
{
name = 'club',
label = 'El Esteban mobil',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 1.30
},
{
name = 'pbus2',
label = 'Partybus GTA',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 2.30
},
{
name = 'enforcer',
label = 'Enforcer',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 5.55
},
{
name = 'spray',
label = 'Spraydose 3x',
type = 'item',
amount = 3,
chance = 5.55
},
{
name = 'spray_remover',
label = 'Entferner 5x',
type = 'item',
amount = 5,
chance = 5.55
},
{
name = 'licenseplate',
label = 'Kennzeichen',
type = 'item',
amount = 1,
chance = 5.55
},
{
name = 'medikit',
label = 'Medikits 10x',
type = 'item',
amount = 10,
chance = 5.55
},
{
name = 'auto_pilot',
label = 'Auto Pilot 5x',
type = 'item',
amount = 5,
chance = 5.55
},
-- {
-- name = 'wasser',
-- label = 'Wasser',
-- type = 'item',
-- amount = 1,
-- chance = 0.20
-- },
{
name = 'containerkey',
label = 'Containerkey',
type = 'item',
amount = 1,
chance = 2.00
}
}
Config.Container = {
{
name = 'asea',
label = 'Asea',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 16.66
},
{
name = 'bati',
label = 'Bati',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 20
},
{
name = 'bati',
label = 'Bati',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 16.66
},
{
name = 'bati',
label = 'Bati',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 16.66
},
{
name = 'bati',
label = 'Bati',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 16.66
},
{
name = 'bati',
label = 'Bati',
type = 'vehicle',
vehicleType = 'car',
amount = 1,
chance = 16.66
}
}
Config.Locales = {
['de'] = {
['press_e'] = 'Drücke E',
['dont_have_case'] = 'Du hast keine Case!',
['dont_have_container'] = 'Du hast kein Container Schlüssel!',
['webhook_date'] = "Am %s um %s",
['private_webhook_case_win'] = 'Der Spieler %s hat aus der Case %s Gewonnen!',
['private_webhook_case_vehicle_win'] = 'Der Spieler %s hat aus der Case %s mit dem Nummerschild %s Gewonnen!',
['private_webhook_container_win'] = 'Der Spieler %s hat aus dem Container %s mit dem Nummerschild %s Gewonnen!',
['public_webhook_case_win'] = '**hat: %s Gewonnen**',
['public_webhook_case_vehicle_win'] = '**hat: %s Nummernschild : %s Gewonnen**',
['public_webhook_container_win'] = '**hat: %s Nummernschild : %s Gewonnen**'
},
['en'] = {
['webhook_date'] = "On %s at %s",
}
}
function DrawHelpNotify(message)
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HelpNotify(message)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HelpNotify(message)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HelpNotify(message)
elseif GetResourceState('hex_1_hud') == 'started' then
exports['hex_1_hud']:HelpNotify(message)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HelpNotify(message)
else
SetTextComponentFormat('STRING')
AddTextComponentString(message)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
end
end
function Notify(title, message, notifyType, timeout)
if timeout == nil then timeout = 5000 end
if notifyType == nil then notifyType = 'info' end
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_1_hud') == 'started' then
exports['hex_1_hud']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:Notify(title, message, notifyType, timeout)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:Notify(title, message, notifyType, timeout)
else
print(('Notify: %s, %s, %s, %s'):format(title, message, notifyType, timeout))
end
end
function HideHud()
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HideHud(true)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HideHud(true)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HideHud(true)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HideHud(true)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:HideHud(true)
else
-- own implementation
end
end
function ShowHud()
if GetResourceState('hex_final_hud') == 'started' then
exports['hex_final_hud']:HideHud(false)
elseif GetResourceState('hex_2_hud') == 'started' then
exports['hex_2_hud']:HideHud(false)
elseif GetResourceState('hex_future_hud') == 'started' then
exports['hex_future_hud']:HideHud(false)
elseif GetResourceState('hex_hud_prem') == 'started' then
exports['hex_hud_prem']:HideHud(false)
elseif GetResourceState('hex_hud') == 'started' then
exports['hex_hud']:HideHud(false)
else
-- own implementation
end
end