Skip to content

Commit

Permalink
Merge pull request #629 from bitpredator/dev
Browse files Browse the repository at this point in the history
🎨 Run formatter
  • Loading branch information
bitpredator authored Jan 28, 2024
2 parents f366e76 + 9457337 commit 053a05d
Show file tree
Hide file tree
Showing 13 changed files with 185 additions and 184 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/formatt-all.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Check Lua Formatting
name: Check Lua Formatting
on:
push:
branches: [ main ]
pull_request:
types: [ labeled ]
push:
branches: [ main ]
pull_request:
types: [ labeled ]

jobs:
stylua-check:
Expand Down
4 changes: 2 additions & 2 deletions server-data/resources/[bpt_addons]/bpt_ammujob/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2022-2023 bitpredator
Copyright (C) 2022-2024 bitpredator

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) 2022-2023 bitpredator
<program> Copyright (C) 2022-2024 bitpredator
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
2 changes: 1 addition & 1 deletion server-data/resources/[bpt_addons]/bpt_ammujob/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align='center'>bpt_ammujob</a></h1>
<p align='center'><a href='https://discord.gg/ksGfNvDEfq'>Discord</a>

Copyright (C) 2022-2023 bitpredator
Copyright (C) 2022-2024 bitpredator

This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.

Expand Down
61 changes: 33 additions & 28 deletions server-data/resources/[bpt_addons]/bpt_ammujob/config.lua
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
Config = {}
Config.DrawDistance = 10.0 -- How close do you need to be for the markers to be drawn (in GTA units).
Config.MaxInService = -1 -- How much people can be in service at once?
Config.EnablePlayerManagement = true -- Enable society managing.
Config = {}
Config.DrawDistance = 10.0 -- How close do you need to be for the markers to be drawn (in GTA units).
Config.MaxInService = -1 -- How much people can be in service at once?
Config.EnablePlayerManagement = true -- Enable society managing.
Config.EnableSocietyOwnedVehicles = false
Config.Locale = 'en'
Config.OxInventory = ESX.GetConfig().OxInventory
Config.Locale = "en"
Config.OxInventory = ESX.GetConfig().OxInventory

Config.AuthorizedVehicles = {
{model = 'rumpo', label = 'Rumpo'}
{ model = "rumpo", label = "Rumpo" },
}

Config.Zones = {

VehicleSpawner = {
Pos = {x = 821.340637, y = -2146.417480, z = 28.706909},
Size = {x = 1.0, y = 1.0, z = 1.0},
Color = {r = 145, g = 30, b = 30},
Type = 36, Rotate = true
Pos = { x = 821.340637, y = -2146.417480, z = 28.706909 },
Size = { x = 1.0, y = 1.0, z = 1.0 },
Color = { r = 145, g = 30, b = 30 },
Type = 36,
Rotate = true,
},

VehicleSpawnPoint = {
Pos = {x = 822.540649, y = -2134.575928, z = 29.279907},
Size = {x = 1.5, y = 1.5, z = 1.0},
Type = -1, Rotate = false,
Heading = 225.0
Pos = { x = 822.540649, y = -2134.575928, z = 29.279907 },
Size = { x = 1.5, y = 1.5, z = 1.0 },
Type = -1,
Rotate = false,
Heading = 225.0,
},

VehicleDeleter = {
Pos = {x = 822.540649, y = -2134.575928, z = 28.279907},
Size = {x = 3.0, y = 3.0, z = 0.25},
Color = {r = 255, g = 0, b = 0},
Type = 1, Rotate = false
Pos = { x = 822.540649, y = -2134.575928, z = 28.279907 },
Size = { x = 3.0, y = 3.0, z = 0.25 },
Color = { r = 255, g = 0, b = 0 },
Type = 1,
Rotate = false,
},

AmmuActions = {
Pos = {x = 812.479126, y = -2159.182373, z = 29.616821},
Size = {x = 0.5, y = 0.5, z = 0.5},
Color = {r = 204, g = 204, b = 0},
Type = 20, Rotate = true
Pos = { x = 812.479126, y = -2159.182373, z = 29.616821 },
Size = { x = 0.5, y = 0.5, z = 0.5 },
Color = { r = 204, g = 204, b = 0 },
Type = 20,
Rotate = true,
},

Cloakroom = {
Pos = {x = 810.065918, y = -2162.439453, z = 29.616821},
Size = {x = 0.5, y = 0.5, z = 0.5},
Color = {r = 204, g = 204, b = 0},
Type = 21, Rotate = true
}
Pos = { x = 810.065918, y = -2162.439453, z = 29.616821 },
Size = { x = 0.5, y = 0.5, z = 0.5 },
Color = { r = 204, g = 204, b = 0 },
Type = 21,
Rotate = true,
},
}
41 changes: 20 additions & 21 deletions server-data/resources/[bpt_addons]/bpt_ammujob/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
fx_version 'adamant'
fx_version("adamant")
game("gta5")

game 'gta5'
description("bpt_ammunation job")
author("bitpredator")
lua54("yes")
version("1.0.0")

description 'bpt_ammunation job'
author 'bitpredator'
lua54 'yes'
version '1.0.0'
shared_script("@es_extended/imports.lua")

shared_script '@es_extended/imports.lua'
client_scripts({
"@es_extended/locale.lua",
"locales/*.lua",
"config.lua",
"client/main.lua",
})

client_scripts {
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'client/main.lua'
}
server_scripts({
"@es_extended/locale.lua",
"locales/*.lua",
"config.lua",
"server/main.lua",
})

server_scripts {
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'server/main.lua'
}

dependency 'es_extended'
dependency("es_extended")
66 changes: 33 additions & 33 deletions server-data/resources/[bpt_addons]/bpt_ammujob/locales/en.lua
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
Locales['en'] = {
-- cloakroom
['cloakroom_menu'] = 'cloakroom',
['cloakroom_prompt'] = 'press [E] to access the cloakroom.',
['wear_citizen'] = 'civilian clothing',
['wear_work'] = 'work clothes',
-- Inventory
['deposit_stock'] = 'Deposit stock',
['take_stock'] = 'Take stock',
['have_deposited'] = 'Have deposited',
['quantity_invalid'] = 'Quantity invelid',
-- garage
['spawner_prompt'] = 'press [E] to access the garage.',
["vehicle_spawned"] = "vehicle spawned successfully!",
['store_veh'] = 'press [E] to deposit the vehicle',
['spawn_veh'] = 'spawn vehicle',
['spawnpoint_blocked'] = 'vehicle blocks the spawnpoint!',
['only_ammu'] = 'you can only deposit company vehicles.',
['empty_garage'] = 'no vehicles in the garage!',
['taking_service'] = 'Take service: Gunsmith',
['full_service'] = 'complete service: ',
['amount_invalid'] = 'invalid amount',
['press_to_open'] = 'press [E] to access the menu',
['billing'] = 'billing',
['billing_sent'] = 'the invoice has been posted!',
['invoice_amount'] = 'invoice amount',
['no_players_near'] = 'no players nearby',
['boss_actions'] = 'Boss actions',
['blip_ammu'] = 'Armory.',
['ammu'] = 'ammu',
-- billing
['bill_amount'] = "Amount to bill..",
['confirm'] = "Confirm"
Locales["en"] = {
-- cloakroom
["cloakroom_menu"] = "cloakroom",
["cloakroom_prompt"] = "press [E] to access the cloakroom.",
["wear_citizen"] = "civilian clothing",
["wear_work"] = "work clothes",
-- Inventory
["deposit_stock"] = "Deposit stock",
["take_stock"] = "Take stock",
["have_deposited"] = "Have deposited",
["quantity_invalid"] = "Quantity invelid",
-- garage
["spawner_prompt"] = "press [E] to access the garage.",
["vehicle_spawned"] = "vehicle spawned successfully!",
["store_veh"] = "press [E] to deposit the vehicle",
["spawn_veh"] = "spawn vehicle",
["spawnpoint_blocked"] = "vehicle blocks the spawnpoint!",
["only_ammu"] = "you can only deposit company vehicles.",
["empty_garage"] = "no vehicles in the garage!",
["taking_service"] = "Take service: Gunsmith",
["full_service"] = "complete service: ",
["amount_invalid"] = "invalid amount",
["press_to_open"] = "press [E] to access the menu",
["billing"] = "billing",
["billing_sent"] = "the invoice has been posted!",
["invoice_amount"] = "invoice amount",
["no_players_near"] = "no players nearby",
["boss_actions"] = "Boss actions",
["blip_ammu"] = "Armory.",
["ammu"] = "ammu",
-- billing
["bill_amount"] = "Amount to bill..",
["confirm"] = "Confirm",
}
66 changes: 33 additions & 33 deletions server-data/resources/[bpt_addons]/bpt_ammujob/locales/it.lua
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
Locales['it'] = {
-- cloakroom
['cloakroom_menu'] = 'guardaroba',
['cloakroom_prompt'] = 'premi [E] per accedere al guardaroba.',
['wear_citizen'] = 'abbigliamento civile',
['wear_work'] = 'abiti da lavoro',
-- Inventory
['deposit_stock'] = 'Depositare',
['take_stock'] = 'Prendi',
['have_deposited'] = 'Hai depositato',
['quantity_invalid'] = 'Qunatità non valida',
-- garage
['spawner_prompt'] = 'premi [E] per accedere al garage.',
["vehicle_spawned"] = "veicolo generato con successo!",
['store_veh'] = 'premi [E] per depositare il veicolo',
['spawn_veh'] = 'genera veicolo',
['spawnpoint_blocked'] = 'un veicolo blocca lo spawnpoint!',
['only_ammu'] = 'puoi depositare solo veicoli aziendali.',
['empty_garage'] = 'nessun veicolo nel garage!',
['taking_service'] = 'prendi servizio: Armaiolo',
['full_service'] = 'servizio completo: ',
['amount_invalid'] = 'importo non valido',
['press_to_open'] = 'premi [E] per accedere al menu',
['billing'] = 'fattura',
['billing_sent'] = 'la fattura è stata registrata!',
['invoice_amount'] = 'importo fattura',
['no_players_near'] = 'nessun giocatore nelle vicinanze',
['boss_actions'] = 'Azioni del capo',
['blip_ammu'] = 'Armeria.',
['ammu'] = 'ammu',
-- billing
['bill_amount'] = "importo della fattura",
['confirm'] = "Conferma"
Locales["it"] = {
-- cloakroom
["cloakroom_menu"] = "guardaroba",
["cloakroom_prompt"] = "premi [E] per accedere al guardaroba.",
["wear_citizen"] = "abbigliamento civile",
["wear_work"] = "abiti da lavoro",
-- Inventory
["deposit_stock"] = "Depositare",
["take_stock"] = "Prendi",
["have_deposited"] = "Hai depositato",
["quantity_invalid"] = "Qunatità non valida",
-- garage
["spawner_prompt"] = "premi [E] per accedere al garage.",
["vehicle_spawned"] = "veicolo generato con successo!",
["store_veh"] = "premi [E] per depositare il veicolo",
["spawn_veh"] = "genera veicolo",
["spawnpoint_blocked"] = "un veicolo blocca lo spawnpoint!",
["only_ammu"] = "puoi depositare solo veicoli aziendali.",
["empty_garage"] = "nessun veicolo nel garage!",
["taking_service"] = "prendi servizio: Armaiolo",
["full_service"] = "servizio completo: ",
["amount_invalid"] = "importo non valido",
["press_to_open"] = "premi [E] per accedere al menu",
["billing"] = "fattura",
["billing_sent"] = "la fattura è stata registrata!",
["invoice_amount"] = "importo fattura",
["no_players_near"] = "nessun giocatore nelle vicinanze",
["boss_actions"] = "Azioni del capo",
["blip_ammu"] = "Armeria.",
["ammu"] = "ammu",
-- billing
["bill_amount"] = "importo della fattura",
["confirm"] = "Conferma",
}
25 changes: 15 additions & 10 deletions server-data/resources/[esx]/esx_textui/TextUI.lua
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
Debug = ESX.GetConfig().EnableDebug

local isShowing = false
---@param message string
---@param typ string
local function TextUI(message, typ)
isShowing = true
SendNUIMessage({
action = 'show',
message = message and message or 'ESX-TextUI',
type = type(typ) == "string" and typ or 'info'
action = "show",
message = message and message or "ESX-TextUI",
type = type(typ) == "string" and typ or "info",
})
end

local function HideUI()
if not isShowing then
return
end
isShowing = false
SendNUIMessage({
action = 'hide'
action = "hide",
})
end

exports('TextUI', TextUI)
exports('HideUI', HideUI)
RegisterNetEvent('ESX:TextUI', TextUI)
RegisterNetEvent('ESX:HideUI', HideUI)
exports("TextUI", TextUI)
exports("HideUI", HideUI)
RegisterNetEvent("ESX:TextUI", TextUI)
RegisterNetEvent("ESX:HideUI", HideUI)

if Debug then
RegisterCommand("textui:error", function()
Expand All @@ -37,4 +42,4 @@ if Debug then
RegisterCommand("textui:hide", function()
ESX.HideUI()
end)
end
end
2 changes: 1 addition & 1 deletion server-data/resources/[esx]/esx_textui/fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fx_version 'adamant'
game 'gta5'
author 'ESX-Framework'
version '0.0.4'
version '1.0.0'
description 'ESX TextUI'
lua54 'yes'
client_scripts { 'TextUI.lua' }
Expand Down
Loading

0 comments on commit 053a05d

Please sign in to comment.