Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions br_config.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
Config = {}
Config.DrawDistance = 100.0
Config.Locale = 'br'

local seconde = 1000
local minute = 60 * seconde

Config.Fridge = {
meat = 300,
packaged_chicken = 100,
bread = 200,
water = 100,
cola = 100,
vegetables = 100
} -- maxquantity

Config.Recipes = {
tacos = {
Ingredients = {
bread = { "Pão" , 1 },
meat = { "Carne" , 2 },
vegetables = { "Legumes" , 1 }
},
Price = 100,
CookingTime = 30 * seconde,
Item = 'tacos',
Name = 'Tacos'
},
burger = {
Ingredients = {
bread = { "Pão" , 1 },
packaged_chicken = { "Frango" , 1 },
vegetables = { "Legumes" , 1 }
},
Price = 100,
CookingTime = 15 * seconde,
Item = 'burger',
Name = 'Hamburguer'
}
}

Config.Zones = {
Actions = {
Pos = {x = 189.525, y = -1445.308, z = 28.1416},
Size = {x = 1.5, y = 1.5, z = 0.4},
Color = {r = 102, g = 102, b = 204},
Type = 1
},
VehicleSpawnPoint = {
Pos = {x = 193.417, y = -1456.56, z = 28.1416},
Size = {x = 3.0, y = 3.0, z = 0.4},
Type = -1
},
VehicleDeleter = {
Pos = {x = 185.189, y = -1439.23, z = 28.1602},
Size = {x = 3.0, y = 3.0, z = 0.4},
Color = {r = 255, g = 0, b = 0},
Type = 1
},
Market = {
Pos = {x = -2511.07, y = 3615.16, z = 12.6714},
Size = {x = 1.5, y = 1.5, z = 0.4},
Color = {r = 0, g = 255, b = 0},
Type = 1
}
}
32 changes: 32 additions & 0 deletions esx_foodtruck_br.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
SET @job_name = 'foodtruck';
SET @society_name = 'society_foodtruck';
SET @job_Name_Caps = 'Foodtruck';



INSERT INTO `addon_account` (name, label, shared) VALUES
(@society_name, @job_Name_Caps, 1)
;

INSERT INTO `jobs` (name, label, whitelisted) VALUES
(@job_name, @job_Name_Caps, 1)
;

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
(@job_name, 0, 'cook', 'Cozinheiro', 200, '{}', '{}'),
(@job_name, 1, 'boss', 'Dono', 300, '{}', '{}')
;

INSERT INTO `items` (`name`, `label`, `limit`) VALUES
('cola', 'Coca-cola', 20),
('vegetables', 'Legumes', 20),
('meat', 'Carne', 20),
('tacos', 'Tacos', 20),
('burger', 'Hamburguer', 20)
;

INSERT INTO `shops` (`store`, `item`, `price`) VALUES
('Market', 'cola', 100),
('Market', 'vegetables', 100),
('Market', 'meat', 100)
;
6 changes: 4 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ game 'gta5'

client_scripts {
'@es_extended/locale.lua',
'locales/en.lua',
'locales/en.lua',
'locales/br.lua',
'locales/fr.lua',
'config.lua',
'client/main.lua'
Expand All @@ -13,7 +14,8 @@ client_scripts {
server_scripts {
'@mysql-async/lib/MySQL.lua',
'@es_extended/locale.lua',
'locales/en.lua',
'locales/en.lua',
'locales/br.lua',
'locales/fr.lua',
'config.lua',
'server/main.lua'
Expand Down
61 changes: 61 additions & 0 deletions locales/br.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Locales['br'] = {
-- Cloakroom
['vehicle_list'] = 'Lista de Veículos',
['civil'] = 'roupas civis',
['job_clothes'] = 'roupas de trabalho',
['foodtruck_actions_menu'] = 'pressione ~INPUT_CONTEXT~ para acessar o menu.',

-- Vehicles
['store_veh'] = 'pressione ~INPUT_CONTEXT~ para guardar o veículo ' ,
['wrong_veh'] = 'Você tem que estar em um ~b~Foodtruck~s~.',
['vehicles'] = 'veículos',

-- Menus
['recipe'] = 'receita',
['ingredients'] = 'ingredientes',
['price_unit'] = '$ / unidade',
['on_you'] = 'em você',
['action'] = 'açao',
['buy_10'] = 'Comprar 10',
['buy_50'] = 'Comprar 50',
['cook'] = 'preparar',
['billing'] = 'faturamento',
['gears'] = 'material',
['purchased'] = 'Compra efetuada.',

-- Boss Menu
['boss_actions'] = 'ações do chefe',

-- Food
['grill'] = 'grade',
['table'] = 'mesa',
['chair'] = 'cadeira',
['clean'] = 'Limpar',
['bread'] = 'pão',
['meat'] = 'carne',
['vegetables'] = 'legumes',
['tacos'] = 'tacos',
['burger'] = 'hamburguer',
['drank_coke'] = 'Você bebeu uma ~b~Coca-Cola',
['eat_burger'] = 'Você comeu um ~b~hambúrguer',
['eat_taco'] = 'Você comeu um ~b~Taco',
-- F6 Menu

-- Phone
['alert_foodtruck'] = 'Alerta ao Cliente',
-- MISC
['blip_market'] = 'mercado',
['blip_foodtruck'] = 'caminhão de comida',
['take'] = 'pressione ~INPUT_CONTEXT~ para pegar',
['clean_too_far'] = 'você está muito longe do seu equipamento para guardá-lo.',
['cooked'] = 'cozinhar pronto!',
['no_player_nearby'] = 'Nenhum jogador por perto',
['bill_amount'] = 'Valor da fatura',
['missing_ingredients'] = 'falta ingredientes!',
['already_cooking'] = 'uma receita já está em preparação!',
['start_cooking_hint'] = 'pressione ~INPUT_CONTEXT~ para cozinhar.',
['need_more_exp'] = 'Você ~r~ não ~s~ tem experiencia o suficiente para executar esta ação.',
['foodtruck_menu'] = 'pressione ~INPUT_CONTEXT~ para acessar o menu.',
['foodtruck_market_menu'] = 'pressione ~INPUT_CONTEXT~ para acessar o mercado.',
['no_money'] = 'Você não tem dinheiro suficiente!',
}