chore(coding-style): correct indentation

This commit is contained in:
Romain Lanz
2017-09-14 16:23:35 +02:00
parent 28d5269514
commit 7475640ae1
22 changed files with 2887 additions and 2880 deletions
+9
View File
@@ -0,0 +1,9 @@
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
+16 -16
View File
@@ -1,16 +1,16 @@
USE `essentialmode`;
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL DEFAULT '' AFTER `money`,
ADD COLUMN `skin` LONGTEXT NULL AFTER `name`,
ADD COLUMN `job` varchar(255) NULL DEFAULT 'unemployed' AFTER `skin`,
ADD COLUMN `job_grade` INT NULL DEFAULT 0 AFTER `job`,
ADD COLUMN `loadout` LONGTEXT NULL AFTER `job_grade`,
ADD COLUMN `position` VARCHAR(255) NULL AFTER `loadout`
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL DEFAULT '' AFTER `money`,
ADD COLUMN `skin` LONGTEXT NULL AFTER `name`,
ADD COLUMN `job` varchar(255) NULL DEFAULT 'unemployed' AFTER `skin`,
ADD COLUMN `job_grade` INT NULL DEFAULT 0 AFTER `job`,
ADD COLUMN `loadout` LONGTEXT NULL AFTER `job_grade`,
ADD COLUMN `position` VARCHAR(255) NULL AFTER `loadout`
;
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`label` varchar(255) NOT NULL,
@@ -22,7 +22,7 @@ CREATE TABLE `items` (
);
CREATE TABLE `job_grades` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`job_name` varchar(255) DEFAULT NULL,
`grade` int(11) NOT NULL,
@@ -31,39 +31,39 @@ CREATE TABLE `job_grades` (
`salary` int(11) NOT NULL,
`skin_male` longtext NOT NULL,
`skin_female` longtext NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `job_grades` VALUES (1,'unemployed',0,'rsa','RSA',200,'{}','{}');
CREATE TABLE `jobs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `jobs` VALUES (1,'unemployed','Chômeur');
CREATE TABLE `user_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`money` double NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
CREATE TABLE `user_inventory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`item` varchar(255) NOT NULL,
`count` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
+16 -16
View File
@@ -1,16 +1,16 @@
USE `essentialmode`;
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL DEFAULT '' AFTER `money`,
ADD COLUMN `skin` LONGTEXT NULL AFTER `name`,
ADD COLUMN `job` varchar(255) NULL DEFAULT 'unemployed' AFTER `skin`,
ADD COLUMN `job_grade` INT NULL DEFAULT 0 AFTER `job`,
ADD COLUMN `loadout` LONGTEXT NULL AFTER `job_grade`,
ADD COLUMN `position` VARCHAR(255) NULL AFTER `loadout`
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL DEFAULT '' AFTER `money`,
ADD COLUMN `skin` LONGTEXT NULL AFTER `name`,
ADD COLUMN `job` varchar(255) NULL DEFAULT 'unemployed' AFTER `skin`,
ADD COLUMN `job_grade` INT NULL DEFAULT 0 AFTER `job`,
ADD COLUMN `loadout` LONGTEXT NULL AFTER `job_grade`,
ADD COLUMN `position` VARCHAR(255) NULL AFTER `loadout`
;
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`label` varchar(255) NOT NULL,
@@ -22,7 +22,7 @@ CREATE TABLE `items` (
);
CREATE TABLE `job_grades` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`job_name` varchar(255) DEFAULT NULL,
`grade` int(11) NOT NULL,
@@ -31,39 +31,39 @@ CREATE TABLE `job_grades` (
`salary` int(11) NOT NULL,
`skin_male` longtext NOT NULL,
`skin_female` longtext NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `job_grades` VALUES (1,'unemployed',0,'rsa','Arbeitslos',200,'{}','{}');
CREATE TABLE `jobs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `jobs` VALUES (1,'unemployed','Suchend');
CREATE TABLE `user_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`money` double NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
CREATE TABLE `user_inventory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`item` varchar(255) NOT NULL,
`count` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
+16 -16
View File
@@ -1,16 +1,16 @@
USE `essentialmode`;
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL DEFAULT '' AFTER `money`,
ADD COLUMN `skin` LONGTEXT NULL AFTER `name`,
ADD COLUMN `job` varchar(255) NULL DEFAULT 'unemployed' AFTER `skin`,
ADD COLUMN `job_grade` INT NULL DEFAULT 0 AFTER `job`,
ADD COLUMN `loadout` LONGTEXT NULL AFTER `job_grade`,
ADD COLUMN `position` VARCHAR(255) NULL AFTER `loadout`
ALTER TABLE `users`
ADD COLUMN `name` VARCHAR(255) NULL DEFAULT '' AFTER `money`,
ADD COLUMN `skin` LONGTEXT NULL AFTER `name`,
ADD COLUMN `job` varchar(255) NULL DEFAULT 'unemployed' AFTER `skin`,
ADD COLUMN `job_grade` INT NULL DEFAULT 0 AFTER `job`,
ADD COLUMN `loadout` LONGTEXT NULL AFTER `job_grade`,
ADD COLUMN `position` VARCHAR(255) NULL AFTER `loadout`
;
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`label` varchar(255) NOT NULL,
@@ -22,7 +22,7 @@ CREATE TABLE `items` (
);
CREATE TABLE `job_grades` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`job_name` varchar(255) DEFAULT NULL,
`grade` int(11) NOT NULL,
@@ -31,39 +31,39 @@ CREATE TABLE `job_grades` (
`salary` int(11) NOT NULL,
`skin_male` longtext NOT NULL,
`skin_female` longtext NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `job_grades` VALUES (1,'unemployed',0,'rsa','Welfare',200,'{}','{}');
CREATE TABLE `jobs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `jobs` VALUES (1,'unemployed','Unemployed');
CREATE TABLE `user_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`money` double NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
CREATE TABLE `user_inventory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) NOT NULL,
`item` varchar(255) NOT NULL,
`count` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
@@ -3,69 +3,68 @@ resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'ES Extended'
server_scripts {
'@async/async.lua',
'@mysql-async/lib/MySQL.lua',
'config.lua',
'locale.lua',
'locales/de.lua',
'locales/br.lua',
'locales/fr.lua',
'locales/en.lua',
'config.weapons.lua',
'server/common.lua',
'server/classes/player.lua',
'server/functions.lua',
'server/paycheck.lua',
'server/main.lua',
'server/commands.lua'
'@async/async.lua',
'@mysql-async/lib/MySQL.lua',
'config.lua',
'locale.lua',
'locales/de.lua',
'locales/br.lua',
'locales/fr.lua',
'locales/en.lua',
'config.weapons.lua',
'server/common.lua',
'server/classes/player.lua',
'server/functions.lua',
'server/paycheck.lua',
'server/main.lua',
'server/commands.lua'
}
client_scripts {
'config.lua',
'locale.lua',
'locales/de.lua',
'locales/br.lua',
'locales/fr.lua',
'locales/en.lua',
'config.weapons.lua',
'client/common.lua',
'client/entityiter.lua',
'client/functions.lua',
'client/main.lua'
'config.lua',
'locale.lua',
'locales/de.lua',
'locales/br.lua',
'locales/fr.lua',
'locales/en.lua',
'config.weapons.lua',
'client/common.lua',
'client/entityiter.lua',
'client/functions.lua',
'client/main.lua'
}
ui_page {
'html/ui.html'
'html/ui.html'
}
files {
'html/ui.html',
'html/ui.html',
'html/css/app.css',
'html/css/app.css',
'html/js/mustache.min.js',
'html/js/app.js',
'html/fonts/pdown.ttf',
'html/fonts/bankgothic.ttf',
'html/js/mustache.min.js',
'html/js/app.js',
'html/img/cursor.png',
'html/img/keys/enter.png',
'html/img/keys/return.png',
'html/fonts/pdown.ttf',
'html/fonts/bankgothic.ttf',
'html/img/accounts/bank.png',
'html/img/accounts/black_money.png'
'html/img/cursor.png',
'html/img/keys/enter.png',
'html/img/keys/return.png',
'html/img/accounts/bank.png',
'html/img/accounts/black_money.png'
}
exports {
'getSharedObject'
'getSharedObject'
}
server_exports {
'getSharedObject'
'getSharedObject'
}
dependencies {
'essentialmode'
}
'essentialmode'
}
@@ -1,7 +1,7 @@
AddEventHandler('esx:getSharedObject', function(cb)
cb(ESX)
cb(ESX)
end)
function getSharedObject()
return ESX
return ESX
end
@@ -41,16 +41,16 @@ local function EnumerateEntities(initFunc, moveFunc, disposeFunc)
disposeFunc(iter)
return
end
local enum = {handle = iter, destructor = disposeFunc}
setmetatable(enum, entityEnumerator)
local next = true
repeat
coroutine.yield(id)
next, id = moveFunc(iter)
until not next
enum.destructor, enum.handle = nil, nil
disposeFunc(iter)
end)
@@ -76,4 +76,4 @@ end
for ped in EnumeratePeds() do
<do something with 'ped'>
end
]]
]]
File diff suppressed because it is too large Load Diff
+307 -307
View File
@@ -1,13 +1,13 @@
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118
}
local GUI = {}
@@ -21,368 +21,368 @@ local Pickups = {}
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
ESX.PlayerLoaded = true
ESX.PlayerData = xPlayer
ESX.PlayerLoaded = true
ESX.PlayerData = xPlayer
for i=1, #xPlayer.accounts, 1 do
for i=1, #xPlayer.accounts, 1 do
local accountTpl = '<div><img src="img/accounts/' .. xPlayer.accounts[i].name .. '.png"/>&nbsp;{{money}}</div>'
local accountTpl = '<div><img src="img/accounts/' .. xPlayer.accounts[i].name .. '.png"/>&nbsp;{{money}}</div>'
ESX.UI.HUD.RegisterElement('account_' .. xPlayer.accounts[i].name, i-1, 0, accountTpl, {
money = 0
})
ESX.UI.HUD.RegisterElement('account_' .. xPlayer.accounts[i].name, i-1, 0, accountTpl, {
money = 0
})
ESX.UI.HUD.UpdateElement('account_' .. xPlayer.accounts[i].name, {
money = xPlayer.accounts[i].money
})
ESX.UI.HUD.UpdateElement('account_' .. xPlayer.accounts[i].name, {
money = xPlayer.accounts[i].money
})
end
end
local jobTpl = '<div>{{job_label}} - {{grade_label}}</div>'
local jobTpl = '<div>{{job_label}} - {{grade_label}}</div>'
if xPlayer.job.grade_label == '' then
jobTpl = '<div>{{job_label}}</div>'
end
if xPlayer.job.grade_label == '' then
jobTpl = '<div>{{job_label}}</div>'
end
ESX.UI.HUD.RegisterElement('job', #xPlayer.accounts, 0, jobTpl, {
job_label = '',
grade_label = ''
})
ESX.UI.HUD.RegisterElement('job', #xPlayer.accounts, 0, jobTpl, {
job_label = '',
grade_label = ''
})
ESX.UI.HUD.UpdateElement('job', {
job_label = xPlayer.job.label,
grade_label = xPlayer.job.grade_label
})
ESX.UI.HUD.UpdateElement('job', {
job_label = xPlayer.job.label,
grade_label = xPlayer.job.grade_label
})
end)
AddEventHandler('playerSpawned', function()
Citizen.CreateThread(function()
Citizen.CreateThread(function()
while not ESX.PlayerLoaded do
Citizen.Wait(0)
end
while not ESX.PlayerLoaded do
Citizen.Wait(0)
end
local playerPed = GetPlayerPed(-1)
local playerPed = GetPlayerPed(-1)
-- Restore position
if ESX.PlayerData.lastPosition ~= nil then
SetEntityCoords(playerPed, ESX.PlayerData.lastPosition.x, ESX.PlayerData.lastPosition.y, ESX.PlayerData.lastPosition.z)
end
-- Restore position
if ESX.PlayerData.lastPosition ~= nil then
SetEntityCoords(playerPed, ESX.PlayerData.lastPosition.x, ESX.PlayerData.lastPosition.y, ESX.PlayerData.lastPosition.z)
end
-- Restore loadout
for i=1, #ESX.PlayerData.loadout, 1 do
local weaponHash = GetHashKey(ESX.PlayerData.loadout[i].name)
GiveWeaponToPed(playerPed, weaponHash, ESX.PlayerData.loadout[i].ammo, false, false)
end
-- Restore loadout
for i=1, #ESX.PlayerData.loadout, 1 do
local weaponHash = GetHashKey(ESX.PlayerData.loadout[i].name)
GiveWeaponToPed(playerPed, weaponHash, ESX.PlayerData.loadout[i].ammo, false, false)
end
LoadoutLoaded = true
PlayerSpawned = true
LoadoutLoaded = true
PlayerSpawned = true
end)
end)
end)
AddEventHandler('skinchanger:loadDefaultModel', function()
LoadoutLoaded = false
LoadoutLoaded = false
end)
AddEventHandler('skinchanger:modelLoaded', function()
while not ESX.PlayerLoaded do
Citizen.Wait(0)
end
TriggerEvent('esx:restoreLoadout')
while not ESX.PlayerLoaded do
Citizen.Wait(0)
end
TriggerEvent('esx:restoreLoadout')
end)
AddEventHandler('esx:restoreLoadout', function ()
local playerPed = GetPlayerPed(-1)
local playerPed = GetPlayerPed(-1)
for i=1, #ESX.PlayerData.loadout, 1 do
local weaponHash = GetHashKey(ESX.PlayerData.loadout[i].name)
GiveWeaponToPed(playerPed, weaponHash, ESX.PlayerData.loadout[i].ammo, false, false)
end
for i=1, #ESX.PlayerData.loadout, 1 do
local weaponHash = GetHashKey(ESX.PlayerData.loadout[i].name)
GiveWeaponToPed(playerPed, weaponHash, ESX.PlayerData.loadout[i].ammo, false, false)
end
LoadoutLoaded = true
LoadoutLoaded = true
end)
RegisterNetEvent('esx:setAccountMoney')
AddEventHandler('esx:setAccountMoney', function(account)
for i=1, #ESX.PlayerData.accounts, 1 do
if ESX.PlayerData.accounts[i].name == account.name then
ESX.PlayerData.accounts[i] = account
end
end
for i=1, #ESX.PlayerData.accounts, 1 do
if ESX.PlayerData.accounts[i].name == account.name then
ESX.PlayerData.accounts[i] = account
end
end
ESX.UI.HUD.UpdateElement('account_' .. account.name, {
money = account.money
})
ESX.UI.HUD.UpdateElement('account_' .. account.name, {
money = account.money
})
end)
RegisterNetEvent('es:activateMoney')
AddEventHandler('es:activateMoney', function(money)
ESX.PlayerData.money = money
ESX.PlayerData.money = money
end)
RegisterNetEvent('esx:addInventoryItem')
AddEventHandler('esx:addInventoryItem', function(item, count)
for i=1, #ESX.PlayerData.inventory, 1 do
if ESX.PlayerData.inventory[i].name == item.name then
ESX.PlayerData.inventory[i] = item
end
end
ESX.UI.ShowInventoryItemNotification(true, item, count)
for i=1, #ESX.PlayerData.inventory, 1 do
if ESX.PlayerData.inventory[i].name == item.name then
ESX.PlayerData.inventory[i] = item
end
end
if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
ESX.UI.ShowInventoryItemNotification(true, item, count)
if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
end)
RegisterNetEvent('esx:removeInventoryItem')
AddEventHandler('esx:removeInventoryItem', function(item, count)
for i=1, #ESX.PlayerData.inventory, 1 do
if ESX.PlayerData.inventory[i].name == item.name then
ESX.PlayerData.inventory[i] = item
end
end
for i=1, #ESX.PlayerData.inventory, 1 do
if ESX.PlayerData.inventory[i].name == item.name then
ESX.PlayerData.inventory[i] = item
end
end
ESX.UI.ShowInventoryItemNotification(false, item, count)
ESX.UI.ShowInventoryItemNotification(false, item, count)
if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
if ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
ESX.PlayerData.job = job
ESX.PlayerData.job = job
end)
RegisterNetEvent('esx:addWeapon')
AddEventHandler('esx:addWeapon', function(weaponName, ammo)
local playerPed = GetPlayerPed(-1)
local weaponHash = GetHashKey(weaponName)
GiveWeaponToPed(playerPed, weaponHash, ammo, false, false)
local playerPed = GetPlayerPed(-1)
local weaponHash = GetHashKey(weaponName)
GiveWeaponToPed(playerPed, weaponHash, ammo, false, false)
end)
RegisterNetEvent('esx:removeWeapon')
AddEventHandler('esx:removeWeapon', function(weaponName)
local playerPed = GetPlayerPed(-1)
local weaponHash = GetHashKey(weaponName)
RemoveWeaponFromPed(playerPed, weaponHash)
local playerPed = GetPlayerPed(-1)
local weaponHash = GetHashKey(weaponName)
RemoveWeaponFromPed(playerPed, weaponHash)
end)
-- Commands
RegisterNetEvent('esx:teleport')
AddEventHandler('esx:teleport', function(pos)
pos.x = pos.x + 0.0
pos.y = pos.y + 0.0
pos.z = pos.z + 0.0
pos.x = pos.x + 0.0
pos.y = pos.y + 0.0
pos.z = pos.z + 0.0
RequestCollisionAtCoord(pos.x, pos.y, pos.z)
while not HasCollisionLoadedAroundEntity(GetPlayerPed(-1)) do
RequestCollisionAtCoord(pos.x, pos.y, pos.z)
Citizen.Wait(0)
end
RequestCollisionAtCoord(pos.x, pos.y, pos.z)
SetEntityCoords(GetPlayerPed(-1), pos.x, pos.y, pos.z)
while not HasCollisionLoadedAroundEntity(GetPlayerPed(-1)) do
RequestCollisionAtCoord(pos.x, pos.y, pos.z)
Citizen.Wait(0)
end
SetEntityCoords(GetPlayerPed(-1), pos.x, pos.y, pos.z)
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
ESX.UI.HUD.UpdateElement('job', {
job_label = job.label,
grade_label = job.grade_label
})
ESX.UI.HUD.UpdateElement('job', {
job_label = job.label,
grade_label = job.grade_label
})
end)
RegisterNetEvent('esx:loadIPL')
AddEventHandler('esx:loadIPL', function(name)
Citizen.CreateThread(function()
LoadMpDlcMaps()
EnableMpDlcMaps(true)
RequestIpl(name)
end)
Citizen.CreateThread(function()
LoadMpDlcMaps()
EnableMpDlcMaps(true)
RequestIpl(name)
end)
end)
RegisterNetEvent('esx:unloadIPL')
AddEventHandler('esx:unloadIPL', function(name)
Citizen.CreateThread(function()
RemoveIpl(name)
end)
Citizen.CreateThread(function()
RemoveIpl(name)
end)
end)
RegisterNetEvent('esx:playAnim')
AddEventHandler('esx:playAnim', function(dict, anim)
Citizen.CreateThread(function()
Citizen.CreateThread(function()
local pid = PlayerPedId()
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do
Wait(0)
end
local pid = PlayerPedId()
TaskPlayAnim(pid, dict, anim, 1.0, -1.0, 20000, 0, 1, true, true, true)
end)
RequestAnimDict(dict)
while not HasAnimDictLoaded(dict) do
Wait(0)
end
TaskPlayAnim(pid, dict, anim, 1.0, -1.0, 20000, 0, 1, true, true, true)
end)
end)
RegisterNetEvent('esx:playEmote')
AddEventHandler('esx:playEmote', function(emote)
Citizen.CreateThread(function()
local playerPed = GetPlayerPed(-1)
Citizen.CreateThread(function()
TaskStartScenarioInPlace(playerPed, emote, 0, false);
Wait(20000)
ClearPedTasks(playerPed)
local playerPed = GetPlayerPed(-1)
end)
TaskStartScenarioInPlace(playerPed, emote, 0, false);
Wait(20000)
ClearPedTasks(playerPed)
end)
end)
RegisterNetEvent('esx:spawnVehicle')
AddEventHandler('esx:spawnVehicle', function(model)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
ESX.Game.SpawnVehicle(model, coords, 90.0, function(vehicle)
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
end)
ESX.Game.SpawnVehicle(model, coords, 90.0, function(vehicle)
TaskWarpPedIntoVehicle(playerPed, vehicle, -1)
end)
end)
RegisterNetEvent('esx:spawnObject')
AddEventHandler('esx:spawnObject', function(model)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local forward = GetEntityForwardVector(playerPed)
local x, y, z = table.unpack(coords + forward * 1.0)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local forward = GetEntityForwardVector(playerPed)
local x, y, z = table.unpack(coords + forward * 1.0)
ESX.Game.SpawnObject(model, {
x = x,
y = y,
z = z
}, function(obj)
SetEntityHeading(obj, GetEntityHeading(playerPed))
PlaceObjectOnGroundProperly(obj)
end)
ESX.Game.SpawnObject(model, {
x = x,
y = y,
z = z
}, function(obj)
SetEntityHeading(obj, GetEntityHeading(playerPed))
PlaceObjectOnGroundProperly(obj)
end)
end)
RegisterNetEvent('esx:pickup')
AddEventHandler('esx:pickup', function(id, label, player)
local ped = GetPlayerPed(GetPlayerFromServerId(player))
local coords = GetEntityCoords(ped)
local forward = GetEntityForwardVector(ped)
local x, y, z = table.unpack(coords + forward * -2.0)
local ped = GetPlayerPed(GetPlayerFromServerId(player))
local coords = GetEntityCoords(ped)
local forward = GetEntityForwardVector(ped)
local x, y, z = table.unpack(coords + forward * -2.0)
ESX.Game.SpawnLocalObject('prop_money_bag_01', {
x = x,
y = y,
z = z - 2.0,
}, function(obj)
SetEntityAsMissionEntity(obj, true, false)
ESX.Game.SpawnLocalObject('prop_money_bag_01', {
x = x,
y = y,
z = z - 2.0,
}, function(obj)
PlaceObjectOnGroundProperly(obj)
Pickups[id] = {
id = id,
obj = obj,
label = label,
inRange = false,
coords = {
x = x,
y = y,
z = z
},
}
SetEntityAsMissionEntity(obj, true, false)
end)
PlaceObjectOnGroundProperly(obj)
Pickups[id] = {
id = id,
obj = obj,
label = label,
inRange = false,
coords = {
x = x,
y = y,
z = z
},
}
end)
end)
RegisterNetEvent('esx:removePickup')
AddEventHandler('esx:removePickup', function(id)
ESX.Game.DeleteObject(Pickups[id].obj)
Pickups[id] = nil
ESX.Game.DeleteObject(Pickups[id].obj)
Pickups[id] = nil
end)
RegisterNetEvent('esx:pickupWeapon')
AddEventHandler('esx:pickupWeapon', function(weaponPickup, weaponName)
local ped = GetPlayerPed(-1)
local playerPedPos = GetEntityCoords(ped, true)
CreateAmbientPickup(GetHashKey(weaponPickup), playerPedPos.x + 2.0, playerPedPos.y, playerPedPos.z + 0.5, 0, 1000, 1, false, true)
local ped = GetPlayerPed(-1)
local playerPedPos = GetEntityCoords(ped, true)
CreateAmbientPickup(GetHashKey(weaponPickup), playerPedPos.x + 2.0, playerPedPos.y, playerPedPos.z + 0.5, 0, 1000, 1, false, true)
end)
RegisterNetEvent('esx:spawnPed')
AddEventHandler('esx:spawnPed', function(model)
model = (tonumber(model) ~= nil and tonumber(model) or GetHashKey(model))
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local forward = GetEntityForwardVector(playerPed)
local x, y, z = table.unpack(coords + forward * 1.0)
model = (tonumber(model) ~= nil and tonumber(model) or GetHashKey(model))
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local forward = GetEntityForwardVector(playerPed)
local x, y, z = table.unpack(coords + forward * 1.0)
Citizen.CreateThread(function()
Citizen.CreateThread(function()
RequestModel(model)
RequestModel(model)
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
while not HasModelLoaded(model) do
Citizen.Wait(0)
end
CreatePed(5, model, x, y, z, 0.0, true, false)
CreatePed(5, model, x, y, z, 0.0, true, false)
end)
end)
end)
RegisterNetEvent('esx:deleteVehicle')
AddEventHandler('esx:deleteVehicle', function()
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
if IsPedInAnyVehicle(playerPed, false) then
local vehicle = GetVehiclePedIsIn(playerPed, false)
ESX.Game.DeleteVehicle(vehicle)
elseif IsAnyVehicleNearPoint(coords.x, coords.y, coords.z, 5.0) then
local vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)
ESX.Game.DeleteVehicle(vehicle)
end
if IsPedInAnyVehicle(playerPed, false) then
local vehicle = GetVehiclePedIsIn(playerPed, false)
ESX.Game.DeleteVehicle(vehicle)
elseif IsAnyVehicleNearPoint(coords.x, coords.y, coords.z, 5.0) then
local vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)
ESX.Game.DeleteVehicle(vehicle)
end
end)
@@ -394,11 +394,11 @@ Citizen.CreateThread(function()
if IsPauseMenuActive() and not IsPaused then
IsPaused = true
TriggerEvent('es:setMoneyDisplay', 0.0)
ESX.UI.HUD.SetDisplay(0.0)
ESX.UI.HUD.SetDisplay(0.0)
elseif not IsPauseMenuActive() and IsPaused then
IsPaused = false
TriggerEvent('es:setMoneyDisplay', 1.0)
ESX.UI.HUD.SetDisplay(1.0)
ESX.UI.HUD.SetDisplay(1.0)
end
end
end)
@@ -406,67 +406,67 @@ end)
-- Save loadout
Citizen.CreateThread(function()
while true do
while true do
Wait(0)
Wait(0)
local playerPed = GetPlayerPed(-1)
local loadout = {}
local loadoutChanged = false
if IsPedDeadOrDying(playerPed) then
LoadoutLoaded = false
end
local playerPed = GetPlayerPed(-1)
local loadout = {}
local loadoutChanged = false
for i=1, #Config.Weapons, 1 do
if IsPedDeadOrDying(playerPed) then
LoadoutLoaded = false
end
local weaponHash = GetHashKey(Config.Weapons[i].name)
for i=1, #Config.Weapons, 1 do
if HasPedGotWeapon(playerPed, weaponHash, false) and Config.Weapons[i].name ~= 'WEAPON_UNARMED' then
local weaponHash = GetHashKey(Config.Weapons[i].name)
local ammo = GetAmmoInPedWeapon(playerPed, weaponHash)
if HasPedGotWeapon(playerPed, weaponHash, false) and Config.Weapons[i].name ~= 'WEAPON_UNARMED' then
if LastLoadout[Config.Weapons[i].name] == nil or LastLoadout[Config.Weapons[i].name] ~= ammo then
loadoutChanged = true
end
local ammo = GetAmmoInPedWeapon(playerPed, weaponHash)
LastLoadout[Config.Weapons[i].name] = ammo
if LastLoadout[Config.Weapons[i].name] == nil or LastLoadout[Config.Weapons[i].name] ~= ammo then
loadoutChanged = true
end
table.insert(loadout, {
name = Config.Weapons[i].name,
ammo = ammo,
label = Config.Weapons[i].label
})
LastLoadout[Config.Weapons[i].name] = ammo
else
table.insert(loadout, {
name = Config.Weapons[i].name,
ammo = ammo,
label = Config.Weapons[i].label
})
if LastLoadout[Config.Weapons[i].name] ~= nil then
loadoutChanged = true
end
else
LastLoadout[Config.Weapons[i].name] = nil
if LastLoadout[Config.Weapons[i].name] ~= nil then
loadoutChanged = true
end
end
LastLoadout[Config.Weapons[i].name] = nil
end
end
if loadoutChanged and LoadoutLoaded then
ESX.PlayerData.loadout = loadout
TriggerServerEvent('esx:updateLoadout', loadout)
end
end
end
if loadoutChanged and LoadoutLoaded then
ESX.PlayerData.loadout = loadout
TriggerServerEvent('esx:updateLoadout', loadout)
end
end
end)
-- Menu interactions
Citizen.CreateThread(function()
while true do
while true do
Wait(0)
Wait(0)
if IsControlPressed(0, Keys["F2"]) and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') and (GetGameTimer() - GUI.Time) > 150 then
ESX.ShowInventory()
GUI.Time = GetGameTimer()
if IsControlPressed(0, Keys["F2"]) and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') and (GetGameTimer() - GUI.Time) > 150 then
ESX.ShowInventory()
GUI.Time = GetGameTimer()
end
end
@@ -475,31 +475,31 @@ end)
-- Dot above head
if Config.ShowDotAbovePlayer then
Citizen.CreateThread(function()
while true do
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
Citizen.Wait(0)
local players = ESX.Game.GetPlayers()
local players = ESX.Game.GetPlayers()
for i = 1, #players, 1 do
if players[i] ~= PlayerId() then
local ped = GetPlayerPed(players[i])
local headId = Citizen.InvokeNative(0xBFEFE3321A3F5015, ped, ('·'), false, false, '', false)
end
end
for i = 1, #players, 1 do
if players[i] ~= PlayerId() then
local ped = GetPlayerPed(players[i])
local headId = Citizen.InvokeNative(0xBFEFE3321A3F5015, ped, ('·'), false, false, '', false)
end
end
end
end)
end
end)
end
-- Disable wanted level
if Config.DisableWantedLevel then
Citizen.CreateThread(function()
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local playerId = PlayerId()
@@ -510,76 +510,76 @@ if Config.DisableWantedLevel then
end
end
end)
end)
end
-- Pickups
Citizen.CreateThread(function()
while true do
while true do
Citizen.Wait(0)
Citizen.Wait(0)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
for k,v in pairs(Pickups) do
for k,v in pairs(Pickups) do
local distance = GetDistanceBetweenCoords(coords.x, coords.y, coords.z, v.coords.x, v.coords.y, v.coords.z, true)
local distance = GetDistanceBetweenCoords(coords.x, coords.y, coords.z, v.coords.x, v.coords.y, v.coords.z, true)
if distance <= 5.0 then
ESX.Game.Utils.DrawText3D({
x = v.coords.x,
y = v.coords.y,
z = v.coords.z + 0.25
}, v.label)
if distance <= 5.0 then
end
ESX.Game.Utils.DrawText3D({
x = v.coords.x,
y = v.coords.y,
z = v.coords.z + 0.25
}, v.label)
if distance <= 1.0 and not v.inRange then
TriggerServerEvent('esx:onPickup', v.id)
v.inRange = true
end
end
end
if distance <= 1.0 and not v.inRange then
TriggerServerEvent('esx:onPickup', v.id)
v.inRange = true
end
end
end
end
end)
-- Last position
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000)
while true do
if ESX ~= nil and ESX.PlayerLoaded and PlayerSpawned then
Citizen.Wait(1000)
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
if ESX ~= nil and ESX.PlayerLoaded and PlayerSpawned then
if not IsEntityDead(playerPed) then
ESX.PlayerData.lastPosition = {x = coords.x, y = coords.y, z = coords.z}
end
local playerPed = GetPlayerPed(-1)
local coords = GetEntityCoords(playerPed)
end
if not IsEntityDead(playerPed) then
ESX.PlayerData.lastPosition = {x = coords.x, y = coords.y, z = coords.z}
end
end
end
end
end)
Citizen.CreateThread(function()
while true do
while true do
Citizen.Wait(0)
Citizen.Wait(0)
local playerPed = GetPlayerPed(-1)
local playerPed = GetPlayerPed(-1)
if IsEntityDead(playerPed) and PlayerSpawned then
PlayerSpawned = false
end
end
if IsEntityDead(playerPed) and PlayerSpawned then
PlayerSpawned = false
end
end
end)
+3 -3
View File
@@ -1,8 +1,8 @@
Config = {}
Config.MaxPlayers = 32
Config.Accounts = {'bank', 'black_money'}
Config.AccountLabels = {bank = 'Banque', black_money = 'Argent Sale'} -- French
--Config.AccountLabels = {bank = 'Bank', black_money = 'Dirty Money'} -- English
Config.Accounts = { 'bank', 'black_money' }
Config.AccountLabels = { bank = 'Banque', black_money = 'Argent Sale' } -- French
-- Config.AccountLabels = { bank = 'Bank', black_money = 'Dirty Money' } -- English
Config.PaycheckInterval = 7 * 60000
Config.ShowDotAbovePlayer = false
Config.DisableWantedLevel = true
@@ -1,81 +1,80 @@
Config.Weapons = {
{name = 'WEAPON_KNIFE', label = _U('weapon_knife')},
{name = 'WEAPON_NIGHTSTICK', label = _U('weapon_nightstick')},
{name = 'WEAPON_HAMMER', label = _U('weapon_hammer')},
{name = 'WEAPON_BAT', label = _U('weapon_bat')},
{name = 'WEAPON_GOLFCLUB', label = _U('weapon_golfclub')},
{name = 'WEAPON_CROWBAR', label = _U('weapon_crowbar')},
{name = 'WEAPON_PISTOL', label = _U('weapon_pistol')},
{name = 'WEAPON_COMBATPISTOL', label = _U('weapon_combatpistol')},
{name = 'WEAPON_APPISTOL', label = _U('weapon_appistol')},
{name = 'WEAPON_PISTOL50', label = _U('weapon_pistol50')},
{name = 'WEAPON_MICROSMG', label = _U('weapon_microsmg')},
{name = 'WEAPON_SMG', label = _U('weapon_smg')},
{name = 'WEAPON_ASSAULTSMG', label = _U('weapon_assaultsmg')},
{name = 'WEAPON_ASSAULTRIFLE', label = _U('weapon_assaultrifle')},
{name = 'WEAPON_CARBINERIFLE', label = _U('weapon_carbinerifle')},
{name = 'WEAPON_ADVANCEDRIFLE', label = _U('weapon_advancedrifle')},
{name = 'WEAPON_MG', label = _U('weapon_mg')},
{name = 'WEAPON_COMBATMG', label = _U('weapon_combatmg')},
{name = 'WEAPON_PUMPSHOTGUN', label = _U('weapon_pumpshotgun')},
{name = 'WEAPON_SAWNOFFSHOTGUN', label = _U('weapon_sawnoffshotgun')},
{name = 'WEAPON_ASSAULTSHOTGUN', label = _U('weapon_assaultshotgun')},
{name = 'WEAPON_BULLPUPSHOTGUN', label = _U('weapon_bullpupshotgun')},
{name = 'WEAPON_STUNGUN', label = _U('weapon_stungun')},
{name = 'WEAPON_SNIPERRIFLE', label = _U('weapon_sniperrifle')},
{name = 'WEAPON_HEAVYSNIPER', label = _U('weapon_heavysniper')},
{name = 'WEAPON_REMOTESNIPER', label = _U('weapon_remotesniper')},
{name = 'WEAPON_GRENADELAUNCHER', label = _U('weapon_grenadelauncher')},
{name = 'WEAPON_RPG', label = _U('weapon_rpg')},
{name = 'WEAPON_STINGER', label = _U('weapon_stinger')},
{name = 'WEAPON_MINIGUN', label = _U('weapon_minigun')},
{name = 'WEAPON_GRENADE', label = _U('weapon_grenade')},
{name = 'WEAPON_STICKYBOMB', label = _U('weapon_stickybomb')},
{name = 'WEAPON_SMOKEGRENADE', label = _U('weapon_smokegrenade')},
{name = 'WEAPON_BZGAS', label = _U('weapon_bzgas')},
{name = 'WEAPON_MOLOTOV', label = _U('weapon_molotov')},
{name = 'WEAPON_FIREEXTINGUISHER', label = _U('weapon_fireextinguisher')},
{name = 'WEAPON_PETROLCAN', label = _U('weapon_petrolcan')},
{name = 'WEAPON_DIGISCANNER', label = _U('weapon_digiscanner')},
{name = 'WEAPON_BALL', label = _U('weapon_ball')},
{name = 'WEAPON_SNSPISTOL', label = _U('weapon_snspistol')},
{name = 'WEAPON_BOTTLE', label = _U('weapon_bottle')},
{name = 'WEAPON_GUSENBERG', label = _U('weapon_gusenberg')},
{name = 'WEAPON_SPECIALCARBINE', label = _U('weapon_specialcarbine')},
{name = 'WEAPON_HEAVYPISTOL', label = _U('weapon_heavypistol')},
{name = 'WEAPON_BULLPUPRIFLE', label = _U('weapon_bullpuprifle')},
{name = 'WEAPON_DAGGER', label = _U('weapon_dagger')},
{name = 'WEAPON_VINTAGEPISTOL', label = _U('weapon_vintagepistol')},
{name = 'WEAPON_FIREWORK', label = _U('weapon_firework')},
{name = 'WEAPON_MUSKET', label = _U('weapon_musket')},
{name = 'WEAPON_HEAVYSHOTGUN', label = _U('weapon_heavyshotgun')},
{name = 'WEAPON_MARKSMANRIFLE', label = _U('weapon_marksmanrifle')},
{name = 'WEAPON_HOMINGLAUNCHER', label = _U('weapon_hominglauncher')},
{name = 'WEAPON_PROXMINE', label = _U('weapon_proxmine')},
{name = 'WEAPON_SNOWBALL', label = _U('weapon_snowball')},
{name = 'WEAPON_FLAREGUN', label = _U('weapon_flaregun')},
{name = 'WEAPON_GARBAGEBAG', label = _U('weapon_garbagebag')},
{name = 'WEAPON_HANDCUFFS', label = _U('weapon_handcuffs')},
{name = 'WEAPON_COMBATPDW', label = _U('weapon_combatpdw')},
{name = 'WEAPON_MARKSMANPISTOL', label = _U('weapon_marksmanpistol')},
{name = 'WEAPON_KNUCKLE', label = _U('weapon_knuckle')},
{name = 'WEAPON_HATCHET', label = _U('weapon_hatchet')},
{name = 'WEAPON_RAILGUN', label = _U('weapon_railgun')},
{name = 'WEAPON_MACHETE', label = _U('weapon_machete')},
{name = 'WEAPON_MACHINEPISTOL', label = _U('weapon_machinepistol')},
{name = 'WEAPON_SWITCHBLADE', label = _U('weapon_switchblade')},
{name = 'WEAPON_REVOLVER', label = _U('weapon_revolver')},
{name = 'WEAPON_DBSHOTGUN', label = _U('weapon_dbshotgun')},
{name = 'WEAPON_COMPACTRIFLE', label = _U('weapon_compactrifle')},
{name = 'WEAPON_AUTOSHOTGUN', label = _U('weapon_autoshotgun')},
{name = 'WEAPON_BATTLEAXE', label = _U('weapon_battleaxe')},
{name = 'WEAPON_COMPACTLAUNCHER', label = _U('weapon_compactlauncher')},
{name = 'WEAPON_MINISMG', label = _U('weapon_minismg')},
{name = 'WEAPON_PIPEBOMB', label = _U('weapon_pipebomb')},
{name = 'WEAPON_POOLCUE', label = _U('weapon_poolcue')},
{name = 'WEAPON_WRENCH', label = _U('weapon_wrench')},
{name = 'WEAPON_FLASHLIGHT', label = _U('weapon_flashlight')},
{name = 'GADGET_NIGHTVISION', label = _U('gadget_nightvision')},
{name = 'GADGET_PARACHUTE', label = _U('gadget_parachute')},
}
{ name = 'WEAPON_KNIFE', label = _U('weapon_knife') },
{ name = 'WEAPON_NIGHTSTICK', label = _U('weapon_nightstick') },
{ name = 'WEAPON_HAMMER', label = _U('weapon_hammer') },
{ name = 'WEAPON_BAT', label = _U('weapon_bat') },
{ name = 'WEAPON_GOLFCLUB', label = _U('weapon_golfclub') },
{ name = 'WEAPON_CROWBAR', label = _U('weapon_crowbar') },
{ name = 'WEAPON_PISTOL', label = _U('weapon_pistol') },
{ name = 'WEAPON_COMBATPISTOL', label = _U('weapon_combatpistol') },
{ name = 'WEAPON_APPISTOL', label = _U('weapon_appistol') },
{ name = 'WEAPON_PISTOL50', label = _U('weapon_pistol50') },
{ name = 'WEAPON_MICROSMG', label = _U('weapon_microsmg') },
{ name = 'WEAPON_SMG', label = _U('weapon_smg') },
{ name = 'WEAPON_ASSAULTSMG', label = _U('weapon_assaultsmg') },
{ name = 'WEAPON_ASSAULTRIFLE', label = _U('weapon_assaultrifle') },
{ name = 'WEAPON_CARBINERIFLE', label = _U('weapon_carbinerifle') },
{ name = 'WEAPON_ADVANCEDRIFLE', label = _U('weapon_advancedrifle') },
{ name = 'WEAPON_MG', label = _U('weapon_mg') },
{ name = 'WEAPON_COMBATMG', label = _U('weapon_combatmg') },
{ name = 'WEAPON_PUMPSHOTGUN', label = _U('weapon_pumpshotgun') },
{ name = 'WEAPON_SAWNOFFSHOTGUN', label = _U('weapon_sawnoffshotgun') },
{ name = 'WEAPON_ASSAULTSHOTGUN', label = _U('weapon_assaultshotgun') },
{ name = 'WEAPON_BULLPUPSHOTGUN', label = _U('weapon_bullpupshotgun') },
{ name = 'WEAPON_STUNGUN', label = _U('weapon_stungun') },
{ name = 'WEAPON_SNIPERRIFLE', label = _U('weapon_sniperrifle') },
{ name = 'WEAPON_HEAVYSNIPER', label = _U('weapon_heavysniper') },
{ name = 'WEAPON_REMOTESNIPER', label = _U('weapon_remotesniper') },
{ name = 'WEAPON_GRENADELAUNCHER', label = _U('weapon_grenadelauncher') },
{ name = 'WEAPON_RPG', label = _U('weapon_rpg') },
{ name = 'WEAPON_STINGER', label = _U('weapon_stinger') },
{ name = 'WEAPON_MINIGUN', label = _U('weapon_minigun') },
{ name = 'WEAPON_GRENADE', label = _U('weapon_grenade') },
{ name = 'WEAPON_STICKYBOMB', label = _U('weapon_stickybomb') },
{ name = 'WEAPON_SMOKEGRENADE', label = _U('weapon_smokegrenade') },
{ name = 'WEAPON_BZGAS', label = _U('weapon_bzgas') },
{ name = 'WEAPON_MOLOTOV', label = _U('weapon_molotov') },
{ name = 'WEAPON_FIREEXTINGUISHER', label = _U('weapon_fireextinguisher') },
{ name = 'WEAPON_PETROLCAN', label = _U('weapon_petrolcan') },
{ name = 'WEAPON_DIGISCANNER', label = _U('weapon_digiscanner') },
{ name = 'WEAPON_BALL', label = _U('weapon_ball') },
{ name = 'WEAPON_SNSPISTOL', label = _U('weapon_snspistol') },
{ name = 'WEAPON_BOTTLE', label = _U('weapon_bottle') },
{ name = 'WEAPON_GUSENBERG', label = _U('weapon_gusenberg') },
{ name = 'WEAPON_SPECIALCARBINE', label = _U('weapon_specialcarbine') },
{ name = 'WEAPON_HEAVYPISTOL', label = _U('weapon_heavypistol') },
{ name = 'WEAPON_BULLPUPRIFLE', label = _U('weapon_bullpuprifle') },
{ name = 'WEAPON_DAGGER', label = _U('weapon_dagger') },
{ name = 'WEAPON_VINTAGEPISTOL', label = _U('weapon_vintagepistol') },
{ name = 'WEAPON_FIREWORK', label = _U('weapon_firework') },
{ name = 'WEAPON_MUSKET', label = _U('weapon_musket') },
{ name = 'WEAPON_HEAVYSHOTGUN', label = _U('weapon_heavyshotgun') },
{ name = 'WEAPON_MARKSMANRIFLE', label = _U('weapon_marksmanrifle') },
{ name = 'WEAPON_HOMINGLAUNCHER', label = _U('weapon_hominglauncher') },
{ name = 'WEAPON_PROXMINE', label = _U('weapon_proxmine') },
{ name = 'WEAPON_SNOWBALL', label = _U('weapon_snowball') },
{ name = 'WEAPON_FLAREGUN', label = _U('weapon_flaregun') },
{ name = 'WEAPON_GARBAGEBAG', label = _U('weapon_garbagebag') },
{ name = 'WEAPON_HANDCUFFS', label = _U('weapon_handcuffs') },
{ name = 'WEAPON_COMBATPDW', label = _U('weapon_combatpdw') },
{ name = 'WEAPON_MARKSMANPISTOL', label = _U('weapon_marksmanpistol') },
{ name = 'WEAPON_KNUCKLE', label = _U('weapon_knuckle') },
{ name = 'WEAPON_HATCHET', label = _U('weapon_hatchet') },
{ name = 'WEAPON_RAILGUN', label = _U('weapon_railgun') },
{ name = 'WEAPON_MACHETE', label = _U('weapon_machete') },
{ name = 'WEAPON_MACHINEPISTOL', label = _U('weapon_machinepistol') },
{ name = 'WEAPON_SWITCHBLADE', label = _U('weapon_switchblade') },
{ name = 'WEAPON_REVOLVER', label = _U('weapon_revolver') },
{ name = 'WEAPON_DBSHOTGUN', label = _U('weapon_dbshotgun') },
{ name = 'WEAPON_COMPACTRIFLE', label = _U('weapon_compactrifle') },
{ name = 'WEAPON_AUTOSHOTGUN', label = _U('weapon_autoshotgun') },
{ name = 'WEAPON_BATTLEAXE', label = _U('weapon_battleaxe') },
{ name = 'WEAPON_COMPACTLAUNCHER', label = _U('weapon_compactlauncher') },
{ name = 'WEAPON_MINISMG', label = _U('weapon_minismg') },
{ name = 'WEAPON_PIPEBOMB', label = _U('weapon_pipebomb') },
{ name = 'WEAPON_POOLCUE', label = _U('weapon_poolcue') },
{ name = 'WEAPON_WRENCH', label = _U('weapon_wrench') },
{ name = 'WEAPON_FLASHLIGHT', label = _U('weapon_flashlight') },
{ name = 'GADGET_NIGHTVISION', label = _U('gadget_nightvision') },
{ name = 'GADGET_PARACHUTE', label = _U('gadget_parachute') },
}
+10 -10
View File
@@ -1,18 +1,18 @@
Locales = {}
function _(str, ...) -- Translate string
function _(str, ...) -- Translate string
if Locales[Config.Locale] ~= nil then
if Locales[Config.Locale] ~= nil then
if Locales[Config.Locale][str] ~= nil then
return string.format(Locales[Config.Locale][str], ...)
else
return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exists'
end
if Locales[Config.Locale][str] ~= nil then
return string.format(Locales[Config.Locale][str], ...)
else
return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exists'
end
else
return 'Locale [' .. Config.Locale .. '] does not exists'
end
else
return 'Locale [' .. Config.Locale .. '] does not exists'
end
end
+121 -121
View File
@@ -1,122 +1,122 @@
Locales['br'] = {
['inventory'] = 'inventário',
['use'] = 'usar',
['give'] = 'dar',
['remove'] = 'remover',
['return'] = 'voltar',
['amount'] = 'quantidade',
['amount_invalid'] = 'quantidade inválida',
['players_nearby'] = 'nenhum jogador nas proximidades',
['ex_inv_lim'] = 'Esta ação não é possível, supera o limite do inventário para ~b~',
['yougave'] = 'você deu',
['youreceived'] = 'você recebeu',
['to'] = '~s~ para ~b~',
['by'] = '~s~ por ~b~',
['imp_invalid_quantity'] = 'ação impossível, quantidade inválida',
['imp_invalid_amount'] = 'ação impossível, valor inválido',
['delete_five_min'] = '~r~deleta~s~ em 5 minutos',
['threw'] = 'você ~r~jogou~s~',
['rec_salary'] = 'você recebeu seu salário: ',
['act_imp'] = 'ação impossível',
-- Commands
['setjob'] = 'atribuir um emprego a um usuário',
['id_param'] = 'o id do jogador',
['setjob_param2'] = 'o trabalho que você deseja atribuir',
['setjob_param3'] = 'o nível de trabalho',
['load_ipl'] = 'carregando ipl',
['unload_ipl'] = 'descarregando ipl',
['play_anim'] = 'reproduzir animação',
['play_emote'] = 'reproduzir emote',
['spawn_car'] = 'fazer aparecer um carro',
['spawn_car_param'] = 'nome do carro',
['spawn_object'] = 'gerar um objeto',
['givemoney'] = 'dar dinheiro',
['money_amount'] = 'quantia do dinheiro',
['invalid_account'] = 'conta inválida',
['account'] = 'conta',
['giveaccountmoney'] = 'dar dinheiro em conta',
['invalid_item'] = 'item inválido',
['item'] = 'item',
['giveitem'] = 'dar item',
['weapon'] = 'arma',
['giveweapon'] = 'dar arma',
-- Weapons
['weapon_knife'] = 'ffaca',
['weapon_nightstick'] = 'cacetete',
['weapon_hammer'] = 'martelo',
['weapon_bat'] = 'bastão',
['weapon_golfclub'] = 'golf club',
['weapon_crowbar'] = 'pé de cabra',
['weapon_pistol'] = 'pistola',
['weapon_combatpistol'] = 'pistola de combate',
['weapon_appistol'] = 'ap pistola',
['weapon_pistol50'] = 'pistola .50',
['weapon_microsmg'] = 'micro smg',
['weapon_smg'] = 'smg',
['weapon_assaultsmg'] = 'assault smg',
['weapon_assaultrifle'] = 'assault rifle',
['weapon_carbinerifle'] = 'carbine rifle',
['weapon_advancedrifle'] = 'advanced rifle',
['weapon_mg'] = 'mg',
['weapon_combatmg'] = 'combat mg',
['weapon_pumpshotgun'] = 'espingarda',
['weapon_sawnoffshotgun'] = 'sawed off shotgun',
['weapon_assaultshotgun'] = 'assault shotgun',
['weapon_bullpupshotgun'] = 'bullpup shotgun',
['weapon_stungun'] = 'arma de choque',
['weapon_sniperrifle'] = 'sniper rifle',
['weapon_heavysniper'] = 'heavy sniper',
['weapon_remotesniper'] = 'remote sniper',
['weapon_grenadelauncher'] = 'lançador de granada',
['weapon_rpg'] = 'lançador de foguetes',
['weapon_stinger'] = 'stinger',
['weapon_minigun'] = 'minigun',
['weapon_grenade'] = 'granada',
['weapon_stickybomb'] = 'bomba pegajosa',
['weapon_smokegrenade'] = 'granada de fumaça',
['weapon_bzgas'] = 'bz gas',
['weapon_molotov'] = 'coquetel molotov',
['weapon_fireextinguisher'] = 'extintor',
['weapon_petrolcan'] = 'galão de combustivel',
['weapon_digiscanner'] = 'digiscanner',
['weapon_ball'] = 'bola',
['weapon_snspistol'] = 'sns pistol',
['weapon_bottle'] = 'garrafa',
['weapon_gusenberg'] = 'gusenberg sweeper',
['weapon_specialcarbine'] = 'carabina especial',
['weapon_heavypistol'] = 'heavy pistol',
['weapon_bullpuprifle'] = 'bullpup rifle',
['weapon_dagger'] = 'punhal',
['weapon_vintagepistol'] = 'vintage pistol',
['weapon_firework'] = 'fogos de artifício',
['weapon_musket'] = 'mosquete',
['weapon_heavyshotgun'] = 'heavy shotgun',
['weapon_marksmanrifle'] = 'marksman rifle',
['weapon_hominglauncher'] = 'homing launcher',
['weapon_proxmine'] = 'mina de proximidade',
['weapon_snowball'] = 'bola de neve',
['weapon_flaregun'] = 'sinalizador',
['weapon_garbagebag'] = 'saco de lixo',
['weapon_handcuffs'] = 'algemas',
['weapon_combatpdw'] = 'combat pdw',
['weapon_marksmanpistol'] = 'marksman pistol',
['weapon_knuckle'] = 'soco inglês',
['weapon_hatchet'] = 'machado',
['weapon_railgun'] = 'railgun',
['weapon_machete'] = 'facão',
['weapon_machinepistol'] = 'machine pistol',
['weapon_switchblade'] = 'canivete',
['weapon_revolver'] = 'heavy revolver',
['weapon_dbshotgun'] = 'espingarda de cano duplo',
['weapon_compactrifle'] = 'compact rifle',
['weapon_autoshotgun'] = 'auto shotgun',
['weapon_battleaxe'] = 'battle axe',
['weapon_compactlauncher'] = 'compact launcher',
['weapon_minismg'] = 'mini smg',
['weapon_pipebomb'] = 'bomba caseira',
['weapon_poolcue'] = 'taco de sinuca',
['weapon_wrench'] = 'chave de cano',
['weapon_flashlight'] = 'laterna',
['gadget_nightvision'] = 'visão noturna',
['gadget_parachute'] = 'paraquedas',
}
['inventory'] = 'inventário',
['use'] = 'usar',
['give'] = 'dar',
['remove'] = 'remover',
['return'] = 'voltar',
['amount'] = 'quantidade',
['amount_invalid'] = 'quantidade inválida',
['players_nearby'] = 'nenhum jogador nas proximidades',
['ex_inv_lim'] = 'Esta ação não é possível, supera o limite do inventário para ~b~',
['yougave'] = 'você deu',
['youreceived'] = 'você recebeu',
['to'] = '~s~ para ~b~',
['by'] = '~s~ por ~b~',
['imp_invalid_quantity'] = 'ação impossível, quantidade inválida',
['imp_invalid_amount'] = 'ação impossível, valor inválido',
['delete_five_min'] = '~r~deleta~s~ em 5 minutos',
['threw'] = 'você ~r~jogou~s~',
['rec_salary'] = 'você recebeu seu salário: ',
['act_imp'] = 'ação impossível',
-- Commands
['setjob'] = 'atribuir um emprego a um usuário',
['id_param'] = 'o id do jogador',
['setjob_param2'] = 'o trabalho que você deseja atribuir',
['setjob_param3'] = 'o nível de trabalho',
['load_ipl'] = 'carregando ipl',
['unload_ipl'] = 'descarregando ipl',
['play_anim'] = 'reproduzir animação',
['play_emote'] = 'reproduzir emote',
['spawn_car'] = 'fazer aparecer um carro',
['spawn_car_param'] = 'nome do carro',
['spawn_object'] = 'gerar um objeto',
['givemoney'] = 'dar dinheiro',
['money_amount'] = 'quantia do dinheiro',
['invalid_account'] = 'conta inválida',
['account'] = 'conta',
['giveaccountmoney'] = 'dar dinheiro em conta',
['invalid_item'] = 'item inválido',
['item'] = 'item',
['giveitem'] = 'dar item',
['weapon'] = 'arma',
['giveweapon'] = 'dar arma',
-- Weapons
['weapon_knife'] = 'ffaca',
['weapon_nightstick'] = 'cacetete',
['weapon_hammer'] = 'martelo',
['weapon_bat'] = 'bastão',
['weapon_golfclub'] = 'golf club',
['weapon_crowbar'] = 'pé de cabra',
['weapon_pistol'] = 'pistola',
['weapon_combatpistol'] = 'pistola de combate',
['weapon_appistol'] = 'ap pistola',
['weapon_pistol50'] = 'pistola .50',
['weapon_microsmg'] = 'micro smg',
['weapon_smg'] = 'smg',
['weapon_assaultsmg'] = 'assault smg',
['weapon_assaultrifle'] = 'assault rifle',
['weapon_carbinerifle'] = 'carbine rifle',
['weapon_advancedrifle'] = 'advanced rifle',
['weapon_mg'] = 'mg',
['weapon_combatmg'] = 'combat mg',
['weapon_pumpshotgun'] = 'espingarda',
['weapon_sawnoffshotgun'] = 'sawed off shotgun',
['weapon_assaultshotgun'] = 'assault shotgun',
['weapon_bullpupshotgun'] = 'bullpup shotgun',
['weapon_stungun'] = 'arma de choque',
['weapon_sniperrifle'] = 'sniper rifle',
['weapon_heavysniper'] = 'heavy sniper',
['weapon_remotesniper'] = 'remote sniper',
['weapon_grenadelauncher'] = 'lançador de granada',
['weapon_rpg'] = 'lançador de foguetes',
['weapon_stinger'] = 'stinger',
['weapon_minigun'] = 'minigun',
['weapon_grenade'] = 'granada',
['weapon_stickybomb'] = 'bomba pegajosa',
['weapon_smokegrenade'] = 'granada de fumaça',
['weapon_bzgas'] = 'bz gas',
['weapon_molotov'] = 'coquetel molotov',
['weapon_fireextinguisher'] = 'extintor',
['weapon_petrolcan'] = 'galão de combustivel',
['weapon_digiscanner'] = 'digiscanner',
['weapon_ball'] = 'bola',
['weapon_snspistol'] = 'sns pistol',
['weapon_bottle'] = 'garrafa',
['weapon_gusenberg'] = 'gusenberg sweeper',
['weapon_specialcarbine'] = 'carabina especial',
['weapon_heavypistol'] = 'heavy pistol',
['weapon_bullpuprifle'] = 'bullpup rifle',
['weapon_dagger'] = 'punhal',
['weapon_vintagepistol'] = 'vintage pistol',
['weapon_firework'] = 'fogos de artifício',
['weapon_musket'] = 'mosquete',
['weapon_heavyshotgun'] = 'heavy shotgun',
['weapon_marksmanrifle'] = 'marksman rifle',
['weapon_hominglauncher'] = 'homing launcher',
['weapon_proxmine'] = 'mina de proximidade',
['weapon_snowball'] = 'bola de neve',
['weapon_flaregun'] = 'sinalizador',
['weapon_garbagebag'] = 'saco de lixo',
['weapon_handcuffs'] = 'algemas',
['weapon_combatpdw'] = 'combat pdw',
['weapon_marksmanpistol'] = 'marksman pistol',
['weapon_knuckle'] = 'soco inglês',
['weapon_hatchet'] = 'machado',
['weapon_railgun'] = 'railgun',
['weapon_machete'] = 'facão',
['weapon_machinepistol'] = 'machine pistol',
['weapon_switchblade'] = 'canivete',
['weapon_revolver'] = 'heavy revolver',
['weapon_dbshotgun'] = 'espingarda de cano duplo',
['weapon_compactrifle'] = 'compact rifle',
['weapon_autoshotgun'] = 'auto shotgun',
['weapon_battleaxe'] = 'battle axe',
['weapon_compactlauncher'] = 'compact launcher',
['weapon_minismg'] = 'mini smg',
['weapon_pipebomb'] = 'bomba caseira',
['weapon_poolcue'] = 'taco de sinuca',
['weapon_wrench'] = 'chave de cano',
['weapon_flashlight'] = 'laterna',
['gadget_nightvision'] = 'visão noturna',
['gadget_parachute'] = 'paraquedas',
}
+120 -120
View File
@@ -1,121 +1,121 @@
Locales['de'] = {
['inventory'] = 'Inventar',
['use'] = 'benutzen',
['give'] = 'geben',
['remove'] = 'entfernen',
['return'] = 'zurück',
['amount'] = 'Betrag',
['amount_invalid'] = 'ungültiger Betrag',
['players_nearby'] = 'keine Spieler in der Nähe',
['ex_inv_lim'] = 'Aktion nicht möglich, inventarlimit überschritten für ~b~',
['yougave'] = 'du gibst',
['youreceived'] = 'to empfängst',
['to'] = '~s~ zu ~b~',
['by'] = '~s~ von ~b~',
['imp_invalid_quantity'] = 'Aktion nicht möglich, ungültige Anzahl',
['imp_invalid_amount'] = 'Aktion nicht möglich, ungültiger Betrag',
['delete_five_min'] = '~r~löschen~s~ in 5 Minuten',
['threw'] = 'du ~r~wirfst weg~s~',
['rec_salary'] = 'du hast dein Gehalt erhalten: ',
['act_imp'] = 'Aktion nicht möglich',
-- Commands
['setjob'] = 'assign a job to a user',
['id_param'] = 'the ID of the player',
['setjob_param2'] = 'the job you wish to assign',
['setjob_param3'] = 'the job level',
['load_ipl'] = 'load IPL',
['unload_ipl'] = 'unload IPL',
['play_anim'] = 'play animation',
['play_emote'] = 'play emote',
['spawn_car'] = 'spawn a car',
['spawn_car_param'] = 'name of car',
['givemoney'] = 'give money',
['money_amount'] = 'amount of money',
['invalid_account'] = 'invalid account',
['account'] = 'account',
['giveaccountmoney'] = 'give account money',
['invalid_item'] = 'invalid item',
['item'] = 'item',
['giveitem'] = 'give item',
['weapon'] = 'weapon',
['giveweapon'] = 'give weapon',
-- Weapons
['weapon_knife'] = 'Messer',
['weapon_nightstick'] = 'Schlagstock',
['weapon_hammer'] = 'Hammer',
['weapon_bat'] = 'Schläger',
['weapon_golfclub'] = 'Golfschläger',
['weapon_crowbar'] = 'Brecheisen',
['weapon_pistol'] = 'Pistole',
['weapon_combatpistol'] = 'Kampfpistole',
['weapon_appistol'] = 'AP Pistole',
['weapon_pistol50'] = 'Pistole .50',
['weapon_microsmg'] = 'Mikro SMG',
['weapon_smg'] = 'SMG',
['weapon_assaultsmg'] = 'Kampf SMG',
['weapon_assaultrifle'] = 'Kampfgewehr',
['weapon_carbinerifle'] = 'Karabinergewehr',
['weapon_advancedrifle'] = 'Advancedgewehr',
['weapon_mg'] = 'MG',
['weapon_combatmg'] = 'Kampf MG',
['weapon_pumpshotgun'] = 'Pumpgun',
['weapon_sawnoffshotgun'] = 'Abgesägte Schrotflinte',
['weapon_assaultshotgun'] = 'Kampf Schrotflinte',
['weapon_bullpupshotgun'] = 'Bullpup Schrotflinte',
['weapon_stungun'] = 'Tazer',
['weapon_sniperrifle'] = 'Scharfschützengewehr',
['weapon_heavysniper'] = 'Schweres Sniper',
['weapon_remotesniper'] = 'Remote sniper',
['weapon_grenadelauncher'] = 'Granatwerfer',
['weapon_rpg'] = 'RPG',
['weapon_stinger'] = 'Stinger',
['weapon_minigun'] = 'Minigun',
['weapon_grenade'] = 'Granate',
['weapon_stickybomb'] = 'Haftbombe',
['weapon_smokegrenade'] = 'Rauchgranate',
['weapon_bzgas'] = 'BZ Gas',
['weapon_molotov'] = 'Molotov Cocktail',
['weapon_fireextinguisher'] = 'Feuerlöscher',
['weapon_petrolcan'] = 'Benzinkanister',
['weapon_digiscanner'] = 'Digiscanner',
['weapon_ball'] = 'Ball',
['weapon_snspistol'] = 'SNS Pistole',
['weapon_bottle'] = 'Flasche',
['weapon_gusenberg'] = 'Gusenberg',
['weapon_specialcarbine'] = 'Spezialkarabiner',
['weapon_heavypistol'] = 'Schwere Pistole',
['weapon_bullpuprifle'] = 'Bullpupgewehr',
['weapon_dagger'] = 'Dolch',
['weapon_vintagepistol'] = 'Vintage Pistole',
['weapon_firework'] = 'Feuerwerk',
['weapon_musket'] = 'Muskete',
['weapon_heavyshotgun'] = 'Schwere Schrotflinte',
['weapon_marksmanrifle'] = 'Marksmangewehr',
['weapon_hominglauncher'] = 'Homing Launcher',
['weapon_proxmine'] = 'Annäherungsmine',
['weapon_snowball'] = 'Schneeball',
['weapon_flaregun'] = 'Leuchtpistole',
['weapon_garbagebag'] = 'Müllsack',
['weapon_handcuffs'] = 'Handschellen',
['weapon_combatpdw'] = 'Kampf PDW',
['weapon_marksmanpistol'] = 'Marksman Pistole',
['weapon_knuckle'] = 'Schlagring',
['weapon_hatchet'] = 'Axt',
['weapon_railgun'] = 'Railgun',
['weapon_machete'] = 'Machete',
['weapon_machinepistol'] = 'Maschinenpistole',
['weapon_switchblade'] = 'Klappmesser',
['weapon_revolver'] = 'Schwerer Revolver',
['weapon_dbshotgun'] = 'Doppelläufige Schrotflinte',
['weapon_compactrifle'] = 'Kampfgewehr',
['weapon_autoshotgun'] = 'Auto Shotgun',
['weapon_battleaxe'] = 'Kampfaxt',
['weapon_compactlauncher'] = 'Kompakt Launcher',
['weapon_minismg'] = 'Mini SMG',
['weapon_pipebomb'] = 'Rohrbombe',
['weapon_poolcue'] = '',
['weapon_wrench'] = 'Rohrzange',
['weapon_flashlight'] = 'Taschenlampe',
['gadget_nightvision'] = 'Nachtsichtgerät',
['gadget_parachute'] = 'Fallschirm',
}
['inventory'] = 'Inventar',
['use'] = 'benutzen',
['give'] = 'geben',
['remove'] = 'entfernen',
['return'] = 'zurück',
['amount'] = 'Betrag',
['amount_invalid'] = 'ungültiger Betrag',
['players_nearby'] = 'keine Spieler in der Nähe',
['ex_inv_lim'] = 'Aktion nicht möglich, inventarlimit überschritten für ~b~',
['yougave'] = 'du gibst',
['youreceived'] = 'to empfängst',
['to'] = '~s~ zu ~b~',
['by'] = '~s~ von ~b~',
['imp_invalid_quantity'] = 'Aktion nicht möglich, ungültige Anzahl',
['imp_invalid_amount'] = 'Aktion nicht möglich, ungültiger Betrag',
['delete_five_min'] = '~r~löschen~s~ in 5 Minuten',
['threw'] = 'du ~r~wirfst weg~s~',
['rec_salary'] = 'du hast dein Gehalt erhalten: ',
['act_imp'] = 'Aktion nicht möglich',
-- Commands
['setjob'] = 'assign a job to a user',
['id_param'] = 'the ID of the player',
['setjob_param2'] = 'the job you wish to assign',
['setjob_param3'] = 'the job level',
['load_ipl'] = 'load IPL',
['unload_ipl'] = 'unload IPL',
['play_anim'] = 'play animation',
['play_emote'] = 'play emote',
['spawn_car'] = 'spawn a car',
['spawn_car_param'] = 'name of car',
['givemoney'] = 'give money',
['money_amount'] = 'amount of money',
['invalid_account'] = 'invalid account',
['account'] = 'account',
['giveaccountmoney'] = 'give account money',
['invalid_item'] = 'invalid item',
['item'] = 'item',
['giveitem'] = 'give item',
['weapon'] = 'weapon',
['giveweapon'] = 'give weapon',
-- Weapons
['weapon_knife'] = 'Messer',
['weapon_nightstick'] = 'Schlagstock',
['weapon_hammer'] = 'Hammer',
['weapon_bat'] = 'Schläger',
['weapon_golfclub'] = 'Golfschläger',
['weapon_crowbar'] = 'Brecheisen',
['weapon_pistol'] = 'Pistole',
['weapon_combatpistol'] = 'Kampfpistole',
['weapon_appistol'] = 'AP Pistole',
['weapon_pistol50'] = 'Pistole .50',
['weapon_microsmg'] = 'Mikro SMG',
['weapon_smg'] = 'SMG',
['weapon_assaultsmg'] = 'Kampf SMG',
['weapon_assaultrifle'] = 'Kampfgewehr',
['weapon_carbinerifle'] = 'Karabinergewehr',
['weapon_advancedrifle'] = 'Advancedgewehr',
['weapon_mg'] = 'MG',
['weapon_combatmg'] = 'Kampf MG',
['weapon_pumpshotgun'] = 'Pumpgun',
['weapon_sawnoffshotgun'] = 'Abgesägte Schrotflinte',
['weapon_assaultshotgun'] = 'Kampf Schrotflinte',
['weapon_bullpupshotgun'] = 'Bullpup Schrotflinte',
['weapon_stungun'] = 'Tazer',
['weapon_sniperrifle'] = 'Scharfschützengewehr',
['weapon_heavysniper'] = 'Schweres Sniper',
['weapon_remotesniper'] = 'Remote sniper',
['weapon_grenadelauncher'] = 'Granatwerfer',
['weapon_rpg'] = 'RPG',
['weapon_stinger'] = 'Stinger',
['weapon_minigun'] = 'Minigun',
['weapon_grenade'] = 'Granate',
['weapon_stickybomb'] = 'Haftbombe',
['weapon_smokegrenade'] = 'Rauchgranate',
['weapon_bzgas'] = 'BZ Gas',
['weapon_molotov'] = 'Molotov Cocktail',
['weapon_fireextinguisher'] = 'Feuerlöscher',
['weapon_petrolcan'] = 'Benzinkanister',
['weapon_digiscanner'] = 'Digiscanner',
['weapon_ball'] = 'Ball',
['weapon_snspistol'] = 'SNS Pistole',
['weapon_bottle'] = 'Flasche',
['weapon_gusenberg'] = 'Gusenberg',
['weapon_specialcarbine'] = 'Spezialkarabiner',
['weapon_heavypistol'] = 'Schwere Pistole',
['weapon_bullpuprifle'] = 'Bullpupgewehr',
['weapon_dagger'] = 'Dolch',
['weapon_vintagepistol'] = 'Vintage Pistole',
['weapon_firework'] = 'Feuerwerk',
['weapon_musket'] = 'Muskete',
['weapon_heavyshotgun'] = 'Schwere Schrotflinte',
['weapon_marksmanrifle'] = 'Marksmangewehr',
['weapon_hominglauncher'] = 'Homing Launcher',
['weapon_proxmine'] = 'Annäherungsmine',
['weapon_snowball'] = 'Schneeball',
['weapon_flaregun'] = 'Leuchtpistole',
['weapon_garbagebag'] = 'Müllsack',
['weapon_handcuffs'] = 'Handschellen',
['weapon_combatpdw'] = 'Kampf PDW',
['weapon_marksmanpistol'] = 'Marksman Pistole',
['weapon_knuckle'] = 'Schlagring',
['weapon_hatchet'] = 'Axt',
['weapon_railgun'] = 'Railgun',
['weapon_machete'] = 'Machete',
['weapon_machinepistol'] = 'Maschinenpistole',
['weapon_switchblade'] = 'Klappmesser',
['weapon_revolver'] = 'Schwerer Revolver',
['weapon_dbshotgun'] = 'Doppelläufige Schrotflinte',
['weapon_compactrifle'] = 'Kampfgewehr',
['weapon_autoshotgun'] = 'Auto Shotgun',
['weapon_battleaxe'] = 'Kampfaxt',
['weapon_compactlauncher'] = 'Kompakt Launcher',
['weapon_minismg'] = 'Mini SMG',
['weapon_pipebomb'] = 'Rohrbombe',
['weapon_poolcue'] = '',
['weapon_wrench'] = 'Rohrzange',
['weapon_flashlight'] = 'Taschenlampe',
['gadget_nightvision'] = 'Nachtsichtgerät',
['gadget_parachute'] = 'Fallschirm',
}
+124 -124
View File
@@ -1,126 +1,126 @@
Locales['en'] = {
['inventory'] = 'inventory',
['use'] = 'use',
['give'] = 'give',
['remove'] = 'remove',
['return'] = 'return',
['amount'] = 'amount',
['amount_invalid'] = 'invalid amount',
['players_nearby'] = 'no players nearby',
['ex_inv_lim'] = 'action not possible, exceeding invetory limit for ~b~',
['yougave'] = 'you gave',
['youreceived'] = 'you received',
['to'] = '~s~ to ~b~',
['by'] = '~s~ by ~b~',
['imp_invalid_quantity'] = 'action impossible, invalid quantity',
['imp_invalid_amount'] = 'action impossible, invalid amount',
['delete_five_min'] = '~r~delete~s~ in 5 minutes',
['threw'] = 'you ~r~threw~s~',
['rec_salary'] = 'you received your salary: ',
['act_imp'] = 'action impossible',
-- Commands
['setjob'] = 'assign a job to a user',
['id_param'] = 'the ID of the player',
['setjob_param2'] = 'the job you wish to assign',
['setjob_param3'] = 'the job level',
['load_ipl'] = 'load IPL',
['unload_ipl'] = 'unload IPL',
['play_anim'] = 'play animation',
['play_emote'] = 'play emote',
['spawn_car'] = 'spawn a car',
['spawn_car_param'] = 'name of car',
['delete_vehicle'] = 'deletes Vehicle',
['delete_veh_param'] = 'press enter',
['spawn_object'] = 'spawn object',
['spawn_ped'] = 'spawn ped',
['spawn_ped_param'] = 'example a_m_m_hillbilly_01',
['givemoney'] = 'give money',
['money_amount'] = 'amount of money',
['invalid_account'] = 'invalid account',
['account'] = 'account',
['giveaccountmoney'] = 'give account money',
['invalid_item'] = 'invalid item',
['item'] = 'item',
['giveitem'] = 'give item',
['weapon'] = 'weapon',
['giveweapon'] = 'give weapon',
-- Weapons
['weapon_knife'] = 'knife',
['weapon_nightstick'] = 'nightstick',
['weapon_hammer'] = 'hammer',
['weapon_bat'] = 'bat',
['weapon_golfclub'] = 'golf club',
['weapon_crowbar'] = 'crow bar',
['weapon_pistol'] = 'pistol',
['weapon_combatpistol'] = 'combat pistol',
['weapon_appistol'] = 'ap pistol',
['weapon_pistol50'] = 'pistol .50',
['weapon_microsmg'] = 'micro smg',
['weapon_smg'] = 'smg',
['weapon_assaultsmg'] = 'assault smg',
['weapon_assaultrifle'] = 'assault rifle',
['weapon_carbinerifle'] = 'carbine rifle',
['weapon_advancedrifle'] = 'advanced rifle',
['weapon_mg'] = 'mg',
['weapon_combatmg'] = 'combat mg',
['weapon_pumpshotgun'] = 'pump shotgun',
['weapon_sawnoffshotgun'] = 'sawed off shotgun',
['weapon_assaultshotgun'] = 'assault shotgun',
['weapon_bullpupshotgun'] = 'bullpup shotgun',
['weapon_stungun'] = 'tazer',
['weapon_sniperrifle'] = 'sniper rifle',
['weapon_heavysniper'] = 'heavy sniper',
['weapon_remotesniper'] = 'remote sniper',
['weapon_grenadelauncher'] = 'grenade launcher',
['weapon_rpg'] = 'rocket launcher',
['weapon_stinger'] = 'stinger',
['weapon_minigun'] = 'minigun',
['weapon_grenade'] = 'grenade',
['weapon_stickybomb'] = 'sticky bomb',
['weapon_smokegrenade'] = 'smoke grenade',
['weapon_bzgas'] = 'bz gas',
['weapon_molotov'] = 'molotov cocktail',
['weapon_fireextinguisher'] = 'fire extinguisher',
['weapon_petrolcan'] = 'jerrycan',
['weapon_digiscanner'] = 'digiscanner',
['weapon_ball'] = 'ball',
['weapon_snspistol'] = 'sns pistol',
['weapon_bottle'] = 'bottle',
['weapon_gusenberg'] = 'gusenberg sweeper',
['weapon_specialcarbine'] = 'special carbine',
['weapon_heavypistol'] = 'heavy pistol',
['weapon_bullpuprifle'] = 'bullpup rifle',
['weapon_dagger'] = 'dagger',
['weapon_vintagepistol'] = 'vintage pistol',
['weapon_firework'] = 'firework',
['weapon_musket'] = 'musket',
['weapon_heavyshotgun'] = 'heavy shotgun',
['weapon_marksmanrifle'] = 'marksman rifle',
['weapon_hominglauncher'] = 'homing launcher',
['weapon_proxmine'] = 'proximity mine',
['weapon_snowball'] = 'snow ball',
['weapon_flaregun'] = 'flaregun',
['weapon_garbagebag'] = 'garbage bag',
['weapon_handcuffs'] = 'handcuffs',
['weapon_combatpdw'] = 'combat pdw',
['weapon_marksmanpistol'] = 'marksman pistol',
['weapon_knuckle'] = 'knuckledusters',
['weapon_hatchet'] = 'hatchet',
['weapon_railgun'] = 'railgun',
['weapon_machete'] = 'machete',
['weapon_machinepistol'] = 'machine pistol',
['weapon_switchblade'] = 'switchblade',
['weapon_revolver'] = 'heavy revolver',
['weapon_dbshotgun'] = 'double barrel shotgun',
['weapon_compactrifle'] = 'compact rifle',
['weapon_autoshotgun'] = 'auto shotgun',
['weapon_battleaxe'] = 'battle axe',
['weapon_compactlauncher'] = 'compact launcher',
['weapon_minismg'] = 'mini smg',
['weapon_pipebomb'] = 'pipe bomb',
['weapon_poolcue'] = 'pool cue',
['weapon_wrench'] = 'pipe wrench',
['weapon_flashlight'] = 'flashlight',
['gadget_nightvision'] = 'night vision',
['gadget_parachute'] = 'parachute',
['inventory'] = 'inventory',
['use'] = 'use',
['give'] = 'give',
['remove'] = 'remove',
['return'] = 'return',
['amount'] = 'amount',
['amount_invalid'] = 'invalid amount',
['players_nearby'] = 'no players nearby',
['ex_inv_lim'] = 'action not possible, exceeding invetory limit for ~b~',
['yougave'] = 'you gave',
['youreceived'] = 'you received',
['to'] = '~s~ to ~b~',
['by'] = '~s~ by ~b~',
['imp_invalid_quantity'] = 'action impossible, invalid quantity',
['imp_invalid_amount'] = 'action impossible, invalid amount',
['delete_five_min'] = '~r~delete~s~ in 5 minutes',
['threw'] = 'you ~r~threw~s~',
['rec_salary'] = 'you received your salary: ',
['act_imp'] = 'action impossible',
-- Commands
['setjob'] = 'assign a job to a user',
['id_param'] = 'the ID of the player',
['setjob_param2'] = 'the job you wish to assign',
['setjob_param3'] = 'the job level',
['load_ipl'] = 'load IPL',
['unload_ipl'] = 'unload IPL',
['play_anim'] = 'play animation',
['play_emote'] = 'play emote',
['spawn_car'] = 'spawn a car',
['spawn_car_param'] = 'name of car',
['delete_vehicle'] = 'deletes Vehicle',
['delete_veh_param'] = 'press enter',
['spawn_object'] = 'spawn object',
['spawn_ped'] = 'spawn ped',
['spawn_ped_param'] = 'example a_m_m_hillbilly_01',
['givemoney'] = 'give money',
['money_amount'] = 'amount of money',
['invalid_account'] = 'invalid account',
['account'] = 'account',
['giveaccountmoney'] = 'give account money',
['invalid_item'] = 'invalid item',
['item'] = 'item',
['giveitem'] = 'give item',
['weapon'] = 'weapon',
['giveweapon'] = 'give weapon',
-- Weapons
['weapon_knife'] = 'knife',
['weapon_nightstick'] = 'nightstick',
['weapon_hammer'] = 'hammer',
['weapon_bat'] = 'bat',
['weapon_golfclub'] = 'golf club',
['weapon_crowbar'] = 'crow bar',
['weapon_pistol'] = 'pistol',
['weapon_combatpistol'] = 'combat pistol',
['weapon_appistol'] = 'ap pistol',
['weapon_pistol50'] = 'pistol .50',
['weapon_microsmg'] = 'micro smg',
['weapon_smg'] = 'smg',
['weapon_assaultsmg'] = 'assault smg',
['weapon_assaultrifle'] = 'assault rifle',
['weapon_carbinerifle'] = 'carbine rifle',
['weapon_advancedrifle'] = 'advanced rifle',
['weapon_mg'] = 'mg',
['weapon_combatmg'] = 'combat mg',
['weapon_pumpshotgun'] = 'pump shotgun',
['weapon_sawnoffshotgun'] = 'sawed off shotgun',
['weapon_assaultshotgun'] = 'assault shotgun',
['weapon_bullpupshotgun'] = 'bullpup shotgun',
['weapon_stungun'] = 'tazer',
['weapon_sniperrifle'] = 'sniper rifle',
['weapon_heavysniper'] = 'heavy sniper',
['weapon_remotesniper'] = 'remote sniper',
['weapon_grenadelauncher'] = 'grenade launcher',
['weapon_rpg'] = 'rocket launcher',
['weapon_stinger'] = 'stinger',
['weapon_minigun'] = 'minigun',
['weapon_grenade'] = 'grenade',
['weapon_stickybomb'] = 'sticky bomb',
['weapon_smokegrenade'] = 'smoke grenade',
['weapon_bzgas'] = 'bz gas',
['weapon_molotov'] = 'molotov cocktail',
['weapon_fireextinguisher'] = 'fire extinguisher',
['weapon_petrolcan'] = 'jerrycan',
['weapon_digiscanner'] = 'digiscanner',
['weapon_ball'] = 'ball',
['weapon_snspistol'] = 'sns pistol',
['weapon_bottle'] = 'bottle',
['weapon_gusenberg'] = 'gusenberg sweeper',
['weapon_specialcarbine'] = 'special carbine',
['weapon_heavypistol'] = 'heavy pistol',
['weapon_bullpuprifle'] = 'bullpup rifle',
['weapon_dagger'] = 'dagger',
['weapon_vintagepistol'] = 'vintage pistol',
['weapon_firework'] = 'firework',
['weapon_musket'] = 'musket',
['weapon_heavyshotgun'] = 'heavy shotgun',
['weapon_marksmanrifle'] = 'marksman rifle',
['weapon_hominglauncher'] = 'homing launcher',
['weapon_proxmine'] = 'proximity mine',
['weapon_snowball'] = 'snow ball',
['weapon_flaregun'] = 'flaregun',
['weapon_garbagebag'] = 'garbage bag',
['weapon_handcuffs'] = 'handcuffs',
['weapon_combatpdw'] = 'combat pdw',
['weapon_marksmanpistol'] = 'marksman pistol',
['weapon_knuckle'] = 'knuckledusters',
['weapon_hatchet'] = 'hatchet',
['weapon_railgun'] = 'railgun',
['weapon_machete'] = 'machete',
['weapon_machinepistol'] = 'machine pistol',
['weapon_switchblade'] = 'switchblade',
['weapon_revolver'] = 'heavy revolver',
['weapon_dbshotgun'] = 'double barrel shotgun',
['weapon_compactrifle'] = 'compact rifle',
['weapon_autoshotgun'] = 'auto shotgun',
['weapon_battleaxe'] = 'battle axe',
['weapon_compactlauncher'] = 'compact launcher',
['weapon_minismg'] = 'mini smg',
['weapon_pipebomb'] = 'pipe bomb',
['weapon_poolcue'] = 'pool cue',
['weapon_wrench'] = 'pipe wrench',
['weapon_flashlight'] = 'flashlight',
['gadget_nightvision'] = 'night vision',
['gadget_parachute'] = 'parachute',
}
+124 -124
View File
@@ -1,126 +1,126 @@
Locales['fr'] = {
['inventory'] = 'inventaire',
['use'] = 'utiliser',
['give'] = 'donner',
['remove'] = 'jeter',
['return'] = 'retour',
['amount'] = 'quantité',
['amount_invalid'] = 'montant invalide',
['players_nearby'] = 'aucun joueur à proximité',
['ex_inv_lim'] = 'action impossible, depassement de la limite d\'inventaire pour ~b~',
['yougave'] = 'vous avez donné',
['youreceived'] = 'vous avez reçu',
['to'] = '~s~ à ~b~',
['by'] = '~s~ par ~b~',
['imp_invalid_quantity'] = 'action impossible, ~r~quantité invalide',
['imp_invalid_amount'] = 'action impossible, ~r~montant invalide',
['delete_five_min'] = '~r~suppression~s~ dans 5 minutes',
['threw'] = 'vous avez ~r~jeté~s~',
['rec_salary'] = 'vous avez reçu votre salaire : ',
['act_imp'] = 'action impossible',
-- Commands
['setjob'] = 'assigner job',
['id_param'] = 'identification du joueur',
['setjob_param2'] = 'le travail que vous souhaitez assigner',
['setjob_param3'] = 'le niveau d\'emploi',
['load_ipl'] = 'charger IPL',
['unload_ipl'] = 'décharger IPL',
['play_anim'] = 'jouer animation',
['play_emote'] = 'jouer emote',
['spawn_car'] = 'spawn un véhicule',
['spawn_car_param'] = 'nom de la voiture',
['delete_vehicle'] = 'supprimer le véhicule',
['delete_veh_param'] = 'appuyez sur Entrée',
['spawn_object'] = 'engendre un objet',
['spawn_ped'] = 'spawn ped',
['spawn_ped_param'] = 'example a_m_m_hillbilly_01',
['givemoney'] = 'donner de l\'argent',
['money_amount'] = 'somme d\'argent',
['invalid_account'] = 'compete invalide',
['account'] = 'compte',
['giveaccountmoney'] = 'donner de l\'argent au compte',
['invalid_item'] = 'item invalide',
['item'] = 'article',
['giveitem'] = 'donner un article',
['weapon'] = 'arme',
['giveweapon'] = 'donner de l\'arme',
-- Weapons
['weapon_knife'] = 'couteau',
['weapon_nightstick'] = 'matraque',
['weapon_hammer'] = 'marteau',
['weapon_bat'] = 'bat',
['weapon_golfclub'] = 'club de golfe',
['weapon_crowbar'] = 'pied de biche',
['weapon_pistol'] = 'pistolet',
['weapon_combatpistol'] = 'pistolet de combat',
['weapon_appistol'] = 'pistolet automatique',
['weapon_pistol50'] = 'pistolet calibre 50',
['weapon_microsmg'] = 'micro smg',
['weapon_smg'] = 'smg',
['weapon_assaultsmg'] = 'smg d\'assaut',
['weapon_assaultrifle'] = 'fusil d\'assaut',
['weapon_carbinerifle'] = 'carabine d\'assaut',
['weapon_advancedrifle'] = 'fusil avancé',
['weapon_mg'] = 'mitrailleuse',
['weapon_combatmg'] = 'mitrailleuse de combat',
['weapon_pumpshotgun'] = 'fusil à pompe',
['weapon_sawnoffshotgun'] = 'carabine à canon scié',
['weapon_assaultshotgun'] = 'carabine d\'assaut',
['weapon_bullpupshotgun'] = 'carabine bullpup',
['weapon_stungun'] = 'tazer',
['weapon_sniperrifle'] = 'fusil de sniper',
['weapon_heavysniper'] = 'fusil de sniper lourd',
['weapon_remotesniper'] = 'fusil de sniper à distance',
['weapon_grenadelauncher'] = 'lance-grenade',
['weapon_rpg'] = 'lance-rocket',
['weapon_stinger'] = 'lance-missile stinger',
['weapon_minigun'] = 'minigun',
['weapon_grenade'] = 'grenade',
['weapon_stickybomb'] = 'bombe collante',
['weapon_smokegrenade'] = 'grenade fumigène',
['weapon_bzgas'] = 'grenade à gaz bz',
['weapon_molotov'] = 'cocktail molotov',
['weapon_fireextinguisher'] = 'extincteur',
['weapon_petrolcan'] = 'jerrican d\'essence',
['weapon_digiscanner'] = 'digiscanner',
['weapon_ball'] = 'balle',
['weapon_snspistol'] = 'pistolet sns',
['weapon_bottle'] = 'bouteille',
['weapon_gusenberg'] = 'balayeuse gusenberg',
['weapon_specialcarbine'] = 'carabine spéciale',
['weapon_heavypistol'] = 'pistolet lourd',
['weapon_bullpuprifle'] = 'fusil bullpup',
['weapon_dagger'] = 'poignard',
['weapon_vintagepistol'] = 'pistolet vintage',
['weapon_firework'] = 'feu d\'artifice',
['weapon_musket'] = 'mousquet',
['weapon_heavyshotgun'] = 'fusil à pompe lourd',
['weapon_marksmanrifle'] = 'fusil marksman',
['weapon_hominglauncher'] = 'lance tête-chercheuse',
['weapon_proxmine'] = 'mine de proximité',
['weapon_snowball'] = 'boule de neige',
['weapon_flaregun'] = 'lance fusée de détresse',
['weapon_garbagebag'] = 'sac poubelle',
['weapon_handcuffs'] = 'menottes',
['weapon_combatpdw'] = 'arme de défense personnelle',
['weapon_marksmanpistol'] = 'pistolet marksman',
['weapon_knuckle'] = 'poing américain',
['weapon_hatchet'] = 'hachette',
['weapon_railgun'] = 'canon éléctrique',
['weapon_machete'] = 'machetta',
['weapon_machinepistol'] = 'pistolet mitrailleur',
['weapon_switchblade'] = 'couteau à cran d\'arrêt',
['weapon_revolver'] = 'revolver',
['weapon_dbshotgun'] = 'fusil à pompe double canon',
['weapon_compactrifle'] = 'fusil compact',
['weapon_autoshotgun'] = 'fusil à pompe automatique',
['weapon_battleaxe'] = 'hache de combat',
['weapon_compactlauncher'] = 'lanceur compact',
['weapon_minismg'] = 'mini smg',
['weapon_pipebomb'] = 'bombe tuyau',
['weapon_poolcue'] = 'queue de billard',
['weapon_wrench'] = 'clé',
['weapon_flashlight'] = 'lampe torche',
['gadget_nightvision'] = 'vision nocturne',
['gadget_parachute'] = 'parachute',
['inventory'] = 'inventaire',
['use'] = 'utiliser',
['give'] = 'donner',
['remove'] = 'jeter',
['return'] = 'retour',
['amount'] = 'quantité',
['amount_invalid'] = 'montant invalide',
['players_nearby'] = 'aucun joueur à proximité',
['ex_inv_lim'] = 'action impossible, depassement de la limite d\'inventaire pour ~b~',
['yougave'] = 'vous avez donné',
['youreceived'] = 'vous avez reçu',
['to'] = '~s~ à ~b~',
['by'] = '~s~ par ~b~',
['imp_invalid_quantity'] = 'action impossible, ~r~quantité invalide',
['imp_invalid_amount'] = 'action impossible, ~r~montant invalide',
['delete_five_min'] = '~r~suppression~s~ dans 5 minutes',
['threw'] = 'vous avez ~r~jeté~s~',
['rec_salary'] = 'vous avez reçu votre salaire : ',
['act_imp'] = 'action impossible',
-- Commands
['setjob'] = 'assigner job',
['id_param'] = 'identification du joueur',
['setjob_param2'] = 'le travail que vous souhaitez assigner',
['setjob_param3'] = 'le niveau d\'emploi',
['load_ipl'] = 'charger IPL',
['unload_ipl'] = 'décharger IPL',
['play_anim'] = 'jouer animation',
['play_emote'] = 'jouer emote',
['spawn_car'] = 'spawn un véhicule',
['spawn_car_param'] = 'nom de la voiture',
['delete_vehicle'] = 'supprimer le véhicule',
['delete_veh_param'] = 'appuyez sur Entrée',
['spawn_object'] = 'engendre un objet',
['spawn_ped'] = 'spawn ped',
['spawn_ped_param'] = 'example a_m_m_hillbilly_01',
['givemoney'] = 'donner de l\'argent',
['money_amount'] = 'somme d\'argent',
['invalid_account'] = 'compete invalide',
['account'] = 'compte',
['giveaccountmoney'] = 'donner de l\'argent au compte',
['invalid_item'] = 'item invalide',
['item'] = 'article',
['giveitem'] = 'donner un article',
['weapon'] = 'arme',
['giveweapon'] = 'donner de l\'arme',
-- Weapons
['weapon_knife'] = 'couteau',
['weapon_nightstick'] = 'matraque',
['weapon_hammer'] = 'marteau',
['weapon_bat'] = 'bat',
['weapon_golfclub'] = 'club de golfe',
['weapon_crowbar'] = 'pied de biche',
['weapon_pistol'] = 'pistolet',
['weapon_combatpistol'] = 'pistolet de combat',
['weapon_appistol'] = 'pistolet automatique',
['weapon_pistol50'] = 'pistolet calibre 50',
['weapon_microsmg'] = 'micro smg',
['weapon_smg'] = 'smg',
['weapon_assaultsmg'] = 'smg d\'assaut',
['weapon_assaultrifle'] = 'fusil d\'assaut',
['weapon_carbinerifle'] = 'carabine d\'assaut',
['weapon_advancedrifle'] = 'fusil avancé',
['weapon_mg'] = 'mitrailleuse',
['weapon_combatmg'] = 'mitrailleuse de combat',
['weapon_pumpshotgun'] = 'fusil à pompe',
['weapon_sawnoffshotgun'] = 'carabine à canon scié',
['weapon_assaultshotgun'] = 'carabine d\'assaut',
['weapon_bullpupshotgun'] = 'carabine bullpup',
['weapon_stungun'] = 'tazer',
['weapon_sniperrifle'] = 'fusil de sniper',
['weapon_heavysniper'] = 'fusil de sniper lourd',
['weapon_remotesniper'] = 'fusil de sniper à distance',
['weapon_grenadelauncher'] = 'lance-grenade',
['weapon_rpg'] = 'lance-rocket',
['weapon_stinger'] = 'lance-missile stinger',
['weapon_minigun'] = 'minigun',
['weapon_grenade'] = 'grenade',
['weapon_stickybomb'] = 'bombe collante',
['weapon_smokegrenade'] = 'grenade fumigène',
['weapon_bzgas'] = 'grenade à gaz bz',
['weapon_molotov'] = 'cocktail molotov',
['weapon_fireextinguisher'] = 'extincteur',
['weapon_petrolcan'] = 'jerrican d\'essence',
['weapon_digiscanner'] = 'digiscanner',
['weapon_ball'] = 'balle',
['weapon_snspistol'] = 'pistolet sns',
['weapon_bottle'] = 'bouteille',
['weapon_gusenberg'] = 'balayeuse gusenberg',
['weapon_specialcarbine'] = 'carabine spéciale',
['weapon_heavypistol'] = 'pistolet lourd',
['weapon_bullpuprifle'] = 'fusil bullpup',
['weapon_dagger'] = 'poignard',
['weapon_vintagepistol'] = 'pistolet vintage',
['weapon_firework'] = 'feu d\'artifice',
['weapon_musket'] = 'mousquet',
['weapon_heavyshotgun'] = 'fusil à pompe lourd',
['weapon_marksmanrifle'] = 'fusil marksman',
['weapon_hominglauncher'] = 'lance tête-chercheuse',
['weapon_proxmine'] = 'mine de proximité',
['weapon_snowball'] = 'boule de neige',
['weapon_flaregun'] = 'lance fusée de détresse',
['weapon_garbagebag'] = 'sac poubelle',
['weapon_handcuffs'] = 'menottes',
['weapon_combatpdw'] = 'arme de défense personnelle',
['weapon_marksmanpistol'] = 'pistolet marksman',
['weapon_knuckle'] = 'poing américain',
['weapon_hatchet'] = 'hachette',
['weapon_railgun'] = 'canon éléctrique',
['weapon_machete'] = 'machetta',
['weapon_machinepistol'] = 'pistolet mitrailleur',
['weapon_switchblade'] = 'couteau à cran d\'arrêt',
['weapon_revolver'] = 'revolver',
['weapon_dbshotgun'] = 'fusil à pompe double canon',
['weapon_compactrifle'] = 'fusil compact',
['weapon_autoshotgun'] = 'fusil à pompe automatique',
['weapon_battleaxe'] = 'hache de combat',
['weapon_compactlauncher'] = 'lanceur compact',
['weapon_minismg'] = 'mini smg',
['weapon_pipebomb'] = 'bombe tuyau',
['weapon_poolcue'] = 'queue de billard',
['weapon_wrench'] = 'clé',
['weapon_flashlight'] = 'lampe torche',
['gadget_nightvision'] = 'vision nocturne',
['gadget_parachute'] = 'parachute',
}
@@ -1,426 +1,426 @@
function CreateExtendedPlayer(player, accounts, inventory, job, loadout, name, lastPosition)
local self = {}
local self = {}
self.player = player
self.accounts = accounts
self.inventory = inventory
self.job = job
self.loadout = loadout
self.name = name
self.lastPosition = lastPosition
self.player = player
self.accounts = accounts
self.inventory = inventory
self.job = job
self.loadout = loadout
self.name = name
self.lastPosition = lastPosition
self.source = self.player.get('source')
self.identifier = self.player.get('identifier')
self.setMoney = function(m)
self.player.setMoney(m)
end
self.getMoney = function()
return self.player.get('money')
end
self.setBankBalance = function(m)
self.player.setBankBalance(m)
end
self.getBank = function()
return self.player.get('bank')
end
self.getCoords = function()
return self.player.get('coords')
end
self.source = self.player.get('source')
self.identifier = self.player.get('identifier')
self.setCoords = function(x, y, z)
self.player.coords = {x = x, y = y, z = z}
end
self.kick = function(r)
self.player.kick(r)
end
self.addMoney = function(m)
self.player.addMoney(m)
end
self.removeMoney = function(m)
self.player.removeMoney(m)
end
self.addBank = function(m)
self.player.addBank(m)
end
self.removeBank = function(m)
self.player.removeBank(m)
end
self.displayMoney = function(m)
self.player.displayMoney(m)
end
self.displayBank = function(m)
self.player.displayBank(m)
end
self.setSessionVar = function(key, value)
self.player.setSessionVar(key, value)
end
self.getSessionVar = function(k)
return self.player.getSessionVar(k)
end
self.getPermissions = function()
return self.player.getPermissions()
end
self.setPermissions = function(p)
self.player.setPermissions(p)
end
self.getIdentifier = function()
return self.player.getIdentifier()
end
self.getGroup = function()
return self.player.getGroup()
end
self.set = function(k, v)
self.player.set(k, v)
end
self.get = function(k)
return self.player.get(k)
end
self.getPlayer = function()
return self.player
end
self.setMoney = function(m)
self.player.setMoney(m)
end
self.getAccounts = function()
self.getMoney = function()
return self.player.get('money')
end
local accounts = {}
self.setBankBalance = function(m)
self.player.setBankBalance(m)
end
for i=1, #Config.Accounts, 1 do
if Config.Accounts[i] == 'bank' then
table.insert(accounts, {
name = 'bank',
money = self.get('bank'),
label = Config.AccountLabels['bank']
})
else
self.getBank = function()
return self.player.get('bank')
end
for j=1, #self.accounts, 1 do
if self.accounts[j].name == Config.Accounts[i] then
table.insert(accounts, self.accounts[j])
end
end
end
end
self.getCoords = function()
return self.player.get('coords')
end
return accounts
self.setCoords = function(x, y, z)
self.player.coords = {x = x, y = y, z = z}
end
end
self.getAccount = function(a)
self.kick = function(r)
self.player.kick(r)
end
if a == 'bank' then
return {
name = 'bank',
money = self.get('bank'),
label = Config.AccountLabels['bank']
}
self.addMoney = function(m)
self.player.addMoney(m)
end
end
self.removeMoney = function(m)
self.player.removeMoney(m)
end
for i=1, #self.accounts, 1 do
if self.accounts[i].name == a then
return self.accounts[i]
end
end
end
self.addBank = function(m)
self.player.addBank(m)
end
self.getInventory = function()
return self.inventory
end
self.removeBank = function(m)
self.player.removeBank(m)
end
self.getJob = function()
return self.job
end
self.displayMoney = function(m)
self.player.displayMoney(m)
end
self.getLoadout = function()
return self.loadout
end
self.displayBank = function(m)
self.player.displayBank(m)
end
self.getName = function()
return self.name
end
self.setSessionVar = function(key, value)
self.player.setSessionVar(key, value)
end
self.getLastPosition = function()
return self.lastPosition
end
self.getSessionVar = function(k)
return self.player.getSessionVar(k)
end
self.getMissingAccounts = function(cb)
MySQL.Async.fetchAll(
'SELECT * FROM `user_accounts` WHERE `identifier` = @identifier',
{
['@identifier'] = self.getIdentifier()
},
function(result)
self.getPermissions = function()
return self.player.getPermissions()
end
local missingAccounts = {};
self.setPermissions = function(p)
self.player.setPermissions(p)
end
for i=1, #Config.Accounts, 1 do
self.getIdentifier = function()
return self.player.getIdentifier()
end
if Config.Accounts[i] ~= 'bank' then
self.getGroup = function()
return self.player.getGroup()
end
local found = false
self.set = function(k, v)
self.player.set(k, v)
end
for j=1, #result, 1 do
if Config.Accounts[i] == result[j].name then
found = true
end
end
self.get = function(k)
return self.player.get(k)
end
if not found then
table.insert(missingAccounts, Config.Accounts[i])
end
self.getPlayer = function()
return self.player
end
end
self.getAccounts = function()
end
local accounts = {}
cb(missingAccounts)
for i=1, #Config.Accounts, 1 do
end
)
if Config.Accounts[i] == 'bank' then
end
table.insert(accounts, {
name = 'bank',
money = self.get('bank'),
label = Config.AccountLabels['bank']
})
self.createAccounts = function(missingAccounts, cb)
else
for i=1, #missingAccounts, 1 do
MySQL.Async.execute(
'INSERT INTO `user_accounts` (identifier, name) VALUES (@identifier, @name)',
{
['@identifier'] = self.getIdentifier(),
['@name'] = missingAccounts[i]
},
function(rowsChanged)
if cb ~= nil then
cb()
end
end
)
end
for j=1, #self.accounts, 1 do
if self.accounts[j].name == Config.Accounts[i] then
table.insert(accounts, self.accounts[j])
end
end
end
end
end
self.setAccountMoney = function(a, m)
local account = self.getAccount(a)
local prevMoney = account.money
local newMoney = m
return accounts
account.money = newMoney
end
if a == 'bank' then
self.set('bank', newMoney)
end
self.getAccount = function(a)
TriggerClientEvent('esx:setAccountMoney', self.source, account)
end
if a == 'bank' then
self.addAccountMoney = function(a, m)
return {
name = 'bank',
money = self.get('bank'),
label = Config.AccountLabels['bank']
}
local account = self.getAccount(a)
local newMoney = account.money + m
end
account.money = newMoney
for i=1, #self.accounts, 1 do
if self.accounts[i].name == a then
return self.accounts[i]
end
end
end
if a == 'bank' then
self.set('bank', newMoney)
end
self.getInventory = function()
return self.inventory
end
TriggerClientEvent('esx:setAccountMoney', self.source, account)
end
self.getJob = function()
return self.job
end
self.removeAccountMoney = function(a, m)
local account = self.getAccount(a)
local newMoney = account.money - m
self.getLoadout = function()
return self.loadout
end
account.money = newMoney
self.getName = function()
return self.name
end
if a == 'bank' then
self.set('bank', newMoney)
end
self.getLastPosition = function()
return self.lastPosition
end
TriggerClientEvent('esx:setAccountMoney', self.source, account)
end
self.getMissingAccounts = function(cb)
self.getInventoryItem = function(name)
for i=1, #self.inventory, 1 do
if self.inventory[i].name == name then
return self.inventory[i]
end
end
MySQL.Async.fetchAll(
'SELECT * FROM `user_accounts` WHERE `identifier` = @identifier',
{
['@identifier'] = self.getIdentifier()
},
function(result)
end
local missingAccounts = {};
self.addInventoryItem = function(name, count)
for i=1, #Config.Accounts, 1 do
local item = self.getInventoryItem(name)
local newCount = item.count + count
item.count = newCount
if Config.Accounts[i] ~= 'bank' then
TriggerEvent("esx:onAddInventoryItem", self.source, item, count)
TriggerClientEvent("esx:addInventoryItem", self.source, item, count)
local found = false
end
for j=1, #result, 1 do
if Config.Accounts[i] == result[j].name then
found = true
end
end
self.removeInventoryItem = function(name, count)
local item = self.getInventoryItem(name)
local newCount = item.count - count
item.count = newCount
if not found then
table.insert(missingAccounts, Config.Accounts[i])
end
TriggerEvent("esx:onRemoveInventoryItem", self.source, item, count)
TriggerClientEvent("esx:removeInventoryItem", self.source, item, count)
end
end
end
self.setInventoryItem = function(name, count)
local item = self.getInventoryItem(name)
local oldCount = item.count
item.count = count
if oldCount > item.count then
TriggerEvent("esx:onRemoveInventoryItem", self.source, item, oldCount - item.count )
TriggerClientEvent("esx:removeInventoryItem", self.source, item, oldCount - item.count )
else
TriggerEvent("esx:onAddInventoryItem", self.source, item, item.count - oldCount)
TriggerClientEvent("esx:addInventoryItem", self.source, item, item.count - oldCount)
end
end
self.setJob = function(name, grade)
local lastJob = json.decode(json.encode(self.job))
cb(missingAccounts)
MySQL.Async.fetchAll(
'SELECT * FROM `jobs` WHERE `name` = @name',
{
['@name'] = name
},
function(result)
end
)
self.job['id'] = result[1].id
self.job['name'] = result[1].name
self.job['label'] = result[1].label
end
MySQL.Async.fetchAll(
'SELECT * FROM `job_grades` WHERE `job_name` = @job_name AND `grade` = @grade',
{
['@job_name'] = name,
['@grade'] = grade
},
function(result)
self.createAccounts = function(missingAccounts, cb)
self.job['grade'] = grade
self.job['grade_name'] = result[1].name
self.job['grade_label'] = result[1].label
self.job['grade_salary'] = result[1].salary
for i=1, #missingAccounts, 1 do
MySQL.Async.execute(
'INSERT INTO `user_accounts` (identifier, name) VALUES (@identifier, @name)',
{
['@identifier'] = self.getIdentifier(),
['@name'] = missingAccounts[i]
},
function(rowsChanged)
if cb ~= nil then
cb()
end
end
)
end
self.job['skin_male'] = nil
self.job['skin_female'] = nil
end
if result[1].skin_male ~= nil then
self.job['skin_male'] = json.decode(result[1].skin_male)
end
self.setAccountMoney = function(a, m)
if result[1].skin_female ~= nil then
self.job['skin_female'] = json.decode(result[1].skin_female)
end
local account = self.getAccount(a)
local prevMoney = account.money
local newMoney = m
TriggerEvent("esx:setJob", self.source, self.job, lastJob)
TriggerClientEvent("esx:setJob", self.source, self.job)
account.money = newMoney
end
)
end
)
end
self.addWeapon = function(weaponName, ammo)
local weaponLabel = weaponName
for i=1, #Config.Weapons, 1 do
if Config.Weapons[i].name == weaponName then
weaponLabel = Config.Weapons[i].label
break
end
end
local foundWeapon = false
for i=1, #self.loadout, 1 do
if self.loadout[i].name == weaponName then
foundWeapon = true
end
end
if not foundWeapon then
table.insert(self.loadout, {
name = weaponName,
ammo = ammon,
label = weaponLabel
})
end
TriggerClientEvent('esx:addWeapon', self.source, weaponName, ammo)
TriggerClientEvent("esx:addInventoryItem", self.source, {label = weaponLabel}, 1)
end
self.removeWeapon = function(weaponName)
local weaponLabel = weaponName
for i=1, #Config.Weapons, 1 do
if Config.Weapons[i].name == weaponName then
weaponLabel = Config.Weapons[i].label
break
end
end
local foundWeapon = false
for i=1, #self.loadout, 1 do
if self.loadout[i].name == weaponName then
table.remove(self.loadout, i)
break
end
end
TriggerClientEvent('esx:removeWeapon', self.source, weaponName)
TriggerClientEvent("esx:removeInventoryItem", self.source, {label = weaponLabel}, 1)
end
return self
end
if a == 'bank' then
self.set('bank', newMoney)
end
TriggerClientEvent('esx:setAccountMoney', self.source, account)
end
self.addAccountMoney = function(a, m)
local account = self.getAccount(a)
local newMoney = account.money + m
account.money = newMoney
if a == 'bank' then
self.set('bank', newMoney)
end
TriggerClientEvent('esx:setAccountMoney', self.source, account)
end
self.removeAccountMoney = function(a, m)
local account = self.getAccount(a)
local newMoney = account.money - m
account.money = newMoney
if a == 'bank' then
self.set('bank', newMoney)
end
TriggerClientEvent('esx:setAccountMoney', self.source, account)
end
self.getInventoryItem = function(name)
for i=1, #self.inventory, 1 do
if self.inventory[i].name == name then
return self.inventory[i]
end
end
end
self.addInventoryItem = function(name, count)
local item = self.getInventoryItem(name)
local newCount = item.count + count
item.count = newCount
TriggerEvent("esx:onAddInventoryItem", self.source, item, count)
TriggerClientEvent("esx:addInventoryItem", self.source, item, count)
end
self.removeInventoryItem = function(name, count)
local item = self.getInventoryItem(name)
local newCount = item.count - count
item.count = newCount
TriggerEvent("esx:onRemoveInventoryItem", self.source, item, count)
TriggerClientEvent("esx:removeInventoryItem", self.source, item, count)
end
self.setInventoryItem = function(name, count)
local item = self.getInventoryItem(name)
local oldCount = item.count
item.count = count
if oldCount > item.count then
TriggerEvent("esx:onRemoveInventoryItem", self.source, item, oldCount - item.count )
TriggerClientEvent("esx:removeInventoryItem", self.source, item, oldCount - item.count )
else
TriggerEvent("esx:onAddInventoryItem", self.source, item, item.count - oldCount)
TriggerClientEvent("esx:addInventoryItem", self.source, item, item.count - oldCount)
end
end
self.setJob = function(name, grade)
local lastJob = json.decode(json.encode(self.job))
MySQL.Async.fetchAll(
'SELECT * FROM `jobs` WHERE `name` = @name',
{
['@name'] = name
},
function(result)
self.job['id'] = result[1].id
self.job['name'] = result[1].name
self.job['label'] = result[1].label
MySQL.Async.fetchAll(
'SELECT * FROM `job_grades` WHERE `job_name` = @job_name AND `grade` = @grade',
{
['@job_name'] = name,
['@grade'] = grade
},
function(result)
self.job['grade'] = grade
self.job['grade_name'] = result[1].name
self.job['grade_label'] = result[1].label
self.job['grade_salary'] = result[1].salary
self.job['skin_male'] = nil
self.job['skin_female'] = nil
if result[1].skin_male ~= nil then
self.job['skin_male'] = json.decode(result[1].skin_male)
end
if result[1].skin_female ~= nil then
self.job['skin_female'] = json.decode(result[1].skin_female)
end
TriggerEvent("esx:setJob", self.source, self.job, lastJob)
TriggerClientEvent("esx:setJob", self.source, self.job)
end
)
end
)
end
self.addWeapon = function(weaponName, ammo)
local weaponLabel = weaponName
for i=1, #Config.Weapons, 1 do
if Config.Weapons[i].name == weaponName then
weaponLabel = Config.Weapons[i].label
break
end
end
local foundWeapon = false
for i=1, #self.loadout, 1 do
if self.loadout[i].name == weaponName then
foundWeapon = true
end
end
if not foundWeapon then
table.insert(self.loadout, {
name = weaponName,
ammo = ammon,
label = weaponLabel
})
end
TriggerClientEvent('esx:addWeapon', self.source, weaponName, ammo)
TriggerClientEvent("esx:addInventoryItem", self.source, {label = weaponLabel}, 1)
end
self.removeWeapon = function(weaponName)
local weaponLabel = weaponName
for i=1, #Config.Weapons, 1 do
if Config.Weapons[i].name == weaponName then
weaponLabel = Config.Weapons[i].label
break
end
end
local foundWeapon = false
for i=1, #self.loadout, 1 do
if self.loadout[i].name == weaponName then
table.remove(self.loadout, i)
break
end
end
TriggerClientEvent('esx:removeWeapon', self.source, weaponName)
TriggerClientEvent("esx:removeInventoryItem", self.source, {label = weaponLabel}, 1)
end
return self
end
@@ -1,136 +1,136 @@
TriggerEvent('es:addGroupCommand', 'tp', 'admin', function(source, args, user)
TriggerClientEvent("esx:teleport", source, {
x = tonumber(args[2]),
y = tonumber(args[3]),
z = tonumber(args[4])
})
TriggerClientEvent("esx:teleport", source, {
x = tonumber(args[2]),
y = tonumber(args[3]),
z = tonumber(args[4])
})
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end)
TriggerEvent('es:addGroupCommand', 'setjob', 'jobmaster', function(source, args, user)
local xPlayer = ESX.GetPlayerFromId(args[2])
xPlayer.setJob(args[3], tonumber(args[4]))
local xPlayer = ESX.GetPlayerFromId(args[2])
xPlayer.setJob(args[3], tonumber(args[4]))
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('setjob'), params = {{name = "id", help = _U('id_param')}, {name = "job", help = _U('setjob_param2')}, {name = "grade_id", help = _U('setjob_param3')}}})
TriggerEvent('es:addGroupCommand', 'loadipl', 'admin', function(source, args, user)
TriggerClientEvent('esx:loadIPL', -1, args[2])
TriggerClientEvent('esx:loadIPL', -1, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('load_ipl')})
TriggerEvent('es:addGroupCommand', 'unloadipl', 'admin', function(source, args, user)
TriggerClientEvent('esx:unloadIPL', -1, args[2])
TriggerClientEvent('esx:unloadIPL', -1, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('unload_ipl')})
TriggerEvent('es:addGroupCommand', 'playanim', 'admin', function(source, args, user)
TriggerClientEvent('esx:playAnim', -1, args[2], args[3])
TriggerClientEvent('esx:playAnim', -1, args[2], args[3])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('play_anim')})
TriggerEvent('es:addGroupCommand', 'playemote', 'admin', function(source, args, user)
TriggerClientEvent('esx:playEmote', -1, args[2])
TriggerClientEvent('esx:playEmote', -1, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('play_emote')})
TriggerEvent('es:addGroupCommand', 'car', 'admin', function(source, args, user)
TriggerClientEvent('esx:spawnVehicle', source, args[2])
TriggerClientEvent('esx:spawnVehicle', source, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('spawn_car'), params = {{name = "car", help = _U('spawn_car_param')}}})
TriggerEvent('es:addGroupCommand', 'dv', 'admin', function(source, args, user)
TriggerClientEvent('esx:deleteVehicle', source)
TriggerClientEvent('esx:deleteVehicle', source)
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('delete_vehicle'), params = {{name = "car", help = _U('delete_veh_param')}}})
TriggerEvent('es:addGroupCommand', 'spawnped', 'admin', function(source, args, user)
TriggerClientEvent('esx:spawnPed', source, args[2])
TriggerClientEvent('esx:spawnPed', source, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('spawn_ped'), params = {{name = "name", help = _U('spawn_ped_param')}}})
TriggerEvent('es:addGroupCommand', 'spawnobject', 'admin', function(source, args, user)
TriggerClientEvent('esx:spawnObject', source, args[2])
TriggerClientEvent('esx:spawnObject', source, args[2])
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('spawn_object'), params = {{name = "name"}}})
TriggerEvent('es:addGroupCommand', 'givemoney', 'admin', function(source, args, user)
local _source = source
local xPlayer = ESX.GetPlayerFromId(args[2])
local amount = tonumber(args[3])
if amount ~= nil then
xPlayer.addMoney(amount)
else
TriggerClientEvent('esx:showNotification', _source, _U('amount_invalid'))
end
local _source = source
local xPlayer = ESX.GetPlayerFromId(args[2])
local amount = tonumber(args[3])
if amount ~= nil then
xPlayer.addMoney(amount)
else
TriggerClientEvent('esx:showNotification', _source, _U('amount_invalid'))
end
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('givemoney'), params = {{name = "id", help = _U('id_param')}, {name = "amount", help = _U('money_amount')}}})
TriggerEvent('es:addGroupCommand', 'giveaccountmoney', 'admin', function(source, args, user)
local _source = source
local xPlayer = ESX.GetPlayerFromId(args[2])
local account = args[3]
local amount = tonumber(args[4])
if amount ~= nil then
if xPlayer.getAccount(account) ~= nil then
xPlayer.addAccountMoney(account, amount)
else
TriggerClientEvent('esx:showNotification', _source, _U('invalid_account'))
end
else
TriggerClientEvent('esx:showNotification', _source, _U('amount_invalid'))
end
local _source = source
local xPlayer = ESX.GetPlayerFromId(args[2])
local account = args[3]
local amount = tonumber(args[4])
if amount ~= nil then
if xPlayer.getAccount(account) ~= nil then
xPlayer.addAccountMoney(account, amount)
else
TriggerClientEvent('esx:showNotification', _source, _U('invalid_account'))
end
else
TriggerClientEvent('esx:showNotification', _source, _U('amount_invalid'))
end
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('giveaccountmoney'), params = {{name = "id", help = _U('id_param')}, {name = "account", help = _U('account')}, {name = "amount", help = _U('money_amount')}}})
TriggerEvent('es:addGroupCommand', 'giveitem', 'admin', function(source, args, user)
local _source = source
local xPlayer = ESX.GetPlayerFromId(args[2])
local item = args[3]
local count = (args[4] == nil and 1 or tonumber(args[4]))
if count ~= nil then
if xPlayer.getInventoryItem(item) ~= nil then
xPlayer.addInventoryItem(item, count)
else
TriggerClientEvent('esx:showNotification', _source, _U('invalid_item'))
end
else
TriggerClientEvent('esx:showNotification', _source, _U('invalid_amount'))
end
local _source = source
local xPlayer = ESX.GetPlayerFromId(args[2])
local item = args[3]
local count = (args[4] == nil and 1 or tonumber(args[4]))
if count ~= nil then
if xPlayer.getInventoryItem(item) ~= nil then
xPlayer.addInventoryItem(item, count)
else
TriggerClientEvent('esx:showNotification', _source, _U('invalid_item'))
end
else
TriggerClientEvent('esx:showNotification', _source, _U('invalid_amount'))
end
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('giveitem'), params = {{name = "id", help = _U('id_param')}, {name = "item", help = _U('item')}, {name = "amount", help = _U('amount')}}})
TriggerEvent('es:addGroupCommand', 'giveweapon', 'admin', function(source, args, user)
local xPlayer = ESX.GetPlayerFromId(args[2])
local weaponName = string.upper(args[3])
xPlayer.addWeapon(weaponName, 1000)
local xPlayer = ESX.GetPlayerFromId(args[2])
local weaponName = string.upper(args[3])
xPlayer.addWeapon(weaponName, 1000)
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('giveweapon'), params = {{name = "id", help = _U('id_param')}, {name = "weapon", help = _U('weapon')}}})
TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficient Permissions.")
end, {help = _U('giveweapon'), params = {{name = "id", help = _U('id_param')}, {name = "weapon", help = _U('weapon')}}})
@@ -9,93 +9,93 @@ ESX.Pickups = {}
ESX.PickupId = 0
AddEventHandler('esx:getSharedObject', function(cb)
cb(ESX)
cb(ESX)
end)
function getSharedObject()
return ESX
return ESX
end
AddEventHandler('onMySQLReady', function ()
MySQL.Async.fetchAll(
'SELECT * FROM items',
{},
function(result)
MySQL.Async.fetchAll(
'SELECT * FROM items',
{},
function(result)
for i=1, #result, 1 do
ESX.Items[result[i].name] = {
label = result[i].label,
limit = result[i].limit,
rare = (result[i].rare == 1 and true or false),
canRemove = (result[i].can_remove == 1 and true or false),
}
end
for i=1, #result, 1 do
ESX.Items[result[i].name] = {
label = result[i].label,
limit = result[i].limit,
rare = (result[i].rare == 1 and true or false),
canRemove = (result[i].can_remove == 1 and true or false),
}
end
end
)
end
)
end)
AddEventHandler('esx:playerLoaded', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
local accounts = {}
local items = {}
local xPlayerAccounts = xPlayer.getAccounts()
local xPlayerItems = xPlayer.getInventory()
local xPlayer = ESX.GetPlayerFromId(source)
local accounts = {}
local items = {}
local xPlayerAccounts = xPlayer.getAccounts()
local xPlayerItems = xPlayer.getInventory()
for i=1, #xPlayerAccounts, 1 do
accounts[xPlayerAccounts[i].name] = xPlayerAccounts[i].money
end
for i=1, #xPlayerAccounts, 1 do
accounts[xPlayerAccounts[i].name] = xPlayerAccounts[i].money
end
for i=1, #xPlayerItems, 1 do
items[xPlayerItems[i].name] = xPlayerItems[i].count
end
for i=1, #xPlayerItems, 1 do
items[xPlayerItems[i].name] = xPlayerItems[i].count
end
ESX.LastPlayerData[source] = {
accounts = accounts,
items = items
}
ESX.LastPlayerData[source] = {
accounts = accounts,
items = items
}
end)
RegisterServerEvent('esx:clientLog')
AddEventHandler('esx:clientLog', function(msg)
RconPrint(msg .. "\n")
RconPrint(msg .. "\n")
end)
RegisterServerEvent('esx:triggerServerCallback')
AddEventHandler('esx:triggerServerCallback', function(name, requestId, ...)
local _source = source
ESX.TriggerServerCallback(name, requestID, _source, function(...)
TriggerClientEvent('esx:serverCallback', _source, requestId, ...)
end, ...)
local _source = source
ESX.TriggerServerCallback(name, requestID, _source, function(...)
TriggerClientEvent('esx:serverCallback', _source, requestId, ...)
end, ...)
end)
-- SetTimeout
CreateThread(function()
while true do
while true do
Wait(0)
Wait(0)
local currTime = os.clock() * 1000
local currTime = os.clock() * 1000
for i=1, #ESX.TimeoutCallbacks, 1 do
for i=1, #ESX.TimeoutCallbacks, 1 do
if ESX.TimeoutCallbacks[i] ~= nil then
if ESX.TimeoutCallbacks[i] ~= nil then
if currTime >= ESX.TimeoutCallbacks[i].time then
ESX.TimeoutCallbacks[i].cb()
ESX.TimeoutCallbacks[i] = nil
end
if currTime >= ESX.TimeoutCallbacks[i].time then
ESX.TimeoutCallbacks[i].cb()
ESX.TimeoutCallbacks[i] = nil
end
end
end
end
end
end
end
end)
@@ -5,13 +5,13 @@ for i = 65, 90 do table.insert(Charset, string.char(i)) end
for i = 97, 122 do table.insert(Charset, string.char(i)) end
ESX.Trace = function(str)
if Config.EnableDebug then
print('ESX> ' .. str)
end
if Config.EnableDebug then
print('ESX> ' .. str)
end
end
ESX.GetConfig = function()
return Config
return Config
end
ESX.GetRandomString = function(length)
@@ -23,224 +23,224 @@ ESX.GetRandomString = function(length)
else
return ''
end
end
ESX.SetTimeout = function(msec, cb)
table.insert(ESX.TimeoutCallbacks, {
time = os.clock() * 1000 + msec,
cb = cb
})
return #ESX.TimeoutCallbacks
table.insert(ESX.TimeoutCallbacks, {
time = os.clock() * 1000 + msec,
cb = cb
})
return #ESX.TimeoutCallbacks
end
ESX.ClearTimeout = function(i)
ESX.TimeoutCallbacks[i] = nil
ESX.TimeoutCallbacks[i] = nil
end
ESX.RegisterServerCallback = function(name, cb)
ESX.ServerCallbacks[name] = cb
ESX.ServerCallbacks[name] = cb
end
ESX.TriggerServerCallback = function(name, requestId, source, cb, ...)
if ESX.ServerCallbacks[name] ~= nil then
ESX.ServerCallbacks[name](source, cb, ...)
else
print('TriggerServerCallback => [' .. name .. '] does not exists')
end
if ESX.ServerCallbacks[name] ~= nil then
ESX.ServerCallbacks[name](source, cb, ...)
else
print('TriggerServerCallback => [' .. name .. '] does not exists')
end
end
ESX.SavePlayer = function(xPlayer, cb)
local asyncTasks = {}
xPlayer.lastPosition = xPlayer.get('coords')
local asyncTasks = {}
xPlayer.lastPosition = xPlayer.get('coords')
-- User accounts
for i=1, #xPlayer.accounts, 1 do
-- User accounts
for i=1, #xPlayer.accounts, 1 do
if ESX.LastPlayerData[xPlayer.source].accounts[xPlayer.accounts[i].name] ~= xPlayer.accounts[i].money then
if ESX.LastPlayerData[xPlayer.source].accounts[xPlayer.accounts[i].name] ~= xPlayer.accounts[i].money then
table.insert(asyncTasks, function(cb)
table.insert(asyncTasks, function(cb)
MySQL.Async.execute(
'UPDATE user_accounts SET `money` = @money WHERE identifier = @identifier AND name = @name',
{
['@money'] = xPlayer.accounts[i].money,
['@identifier'] = xPlayer.identifier,
['@name'] = xPlayer.accounts[i].name
},
function(rowsChanged)
cb()
end
)
MySQL.Async.execute(
'UPDATE user_accounts SET `money` = @money WHERE identifier = @identifier AND name = @name',
{
['@money'] = xPlayer.accounts[i].money,
['@identifier'] = xPlayer.identifier,
['@name'] = xPlayer.accounts[i].name
},
function(rowsChanged)
cb()
end
)
end)
end)
ESX.LastPlayerData[xPlayer.source].accounts[xPlayer.accounts[i].name] = xPlayer.accounts[i].money
ESX.LastPlayerData[xPlayer.source].accounts[xPlayer.accounts[i].name] = xPlayer.accounts[i].money
end
end
end
end
-- Inventory items
for i=1, #xPlayer.inventory, 1 do
-- Inventory items
for i=1, #xPlayer.inventory, 1 do
if ESX.LastPlayerData[xPlayer.source].items[xPlayer.inventory[i].name] ~= xPlayer.inventory[i].count then
if ESX.LastPlayerData[xPlayer.source].items[xPlayer.inventory[i].name] ~= xPlayer.inventory[i].count then
table.insert(asyncTasks, function(cb)
table.insert(asyncTasks, function(cb)
MySQL.Async.execute(
'UPDATE user_inventory SET `count` = @count WHERE identifier = @identifier AND item = @item',
{
['@count'] = xPlayer.inventory[i].count,
['@identifier'] = xPlayer.identifier,
['@item'] = xPlayer.inventory[i].name
},
function(rowsChanged)
cb()
end
)
MySQL.Async.execute(
'UPDATE user_inventory SET `count` = @count WHERE identifier = @identifier AND item = @item',
{
['@count'] = xPlayer.inventory[i].count,
['@identifier'] = xPlayer.identifier,
['@item'] = xPlayer.inventory[i].name
},
function(rowsChanged)
cb()
end
)
end)
end)
ESX.LastPlayerData[xPlayer.source].items[xPlayer.inventory[i].name] = xPlayer.inventory[i].count
ESX.LastPlayerData[xPlayer.source].items[xPlayer.inventory[i].name] = xPlayer.inventory[i].count
end
end
end
end
-- Job, loadout and position
table.insert(asyncTasks, function(cb)
-- Job, loadout and position
table.insert(asyncTasks, function(cb)
MySQL.Async.execute(
'UPDATE users SET `job` = @job, `job_grade` = @job_grade, `loadout` = @loadout, `position` = @position WHERE identifier = @identifier',
{
['@job'] = xPlayer.job.name,
['@job_grade'] = xPlayer.job.grade,
['@loadout'] = json.encode(xPlayer.loadout),
['@position'] = json.encode(xPlayer.lastPosition),
['@identifier'] = xPlayer.identifier
},
function(rowsChanged)
cb()
end
)
MySQL.Async.execute(
'UPDATE users SET `job` = @job, `job_grade` = @job_grade, `loadout` = @loadout, `position` = @position WHERE identifier = @identifier',
{
['@job'] = xPlayer.job.name,
['@job_grade'] = xPlayer.job.grade,
['@loadout'] = json.encode(xPlayer.loadout),
['@position'] = json.encode(xPlayer.lastPosition),
['@identifier'] = xPlayer.identifier
},
function(rowsChanged)
cb()
end
)
end)
end)
Async.parallel(asyncTasks, function(results)
RconPrint('[SAVED] ' .. xPlayer.name .. "\n")
Async.parallel(asyncTasks, function(results)
if cb ~= nil then
cb()
end
RconPrint('[SAVED] ' .. xPlayer.name .. "\n")
end)
if cb ~= nil then
cb()
end
end)
end
ESX.SavePlayers = function(cb)
local asyncTasks = {}
local xPlayers = ESX.GetPlayers()
local asyncTasks = {}
local xPlayers = ESX.GetPlayers()
for i=1, #xPlayers, 1 do
table.insert(asyncTasks, function(cb)
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
ESX.SavePlayer(xPlayer, cb)
end)
end
for i=1, #xPlayers, 1 do
table.insert(asyncTasks, function(cb)
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
ESX.SavePlayer(xPlayer, cb)
end)
end
Async.parallelLimit(asyncTasks, 8, function(results)
RconPrint('[SAVED] All players' .. "\n")
Async.parallelLimit(asyncTasks, 8, function(results)
if cb ~= nil then
cb()
end
RconPrint('[SAVED] All players' .. "\n")
end)
if cb ~= nil then
cb()
end
end)
end
ESX.StartDBSync = function()
function saveData()
ESX.SavePlayers()
SetTimeout(10 * 60 * 1000, saveData)
end
SetTimeout(10 * 60 * 1000, saveData)
function saveData()
ESX.SavePlayers()
SetTimeout(10 * 60 * 1000, saveData)
end
SetTimeout(10 * 60 * 1000, saveData)
end
ESX.GetPlayers = function()
local sources = {}
local sources = {}
for k,v in pairs(ESX.Players) do
table.insert(sources, k)
end
for k,v in pairs(ESX.Players) do
table.insert(sources, k)
end
return sources
return sources
end
ESX.GetPlayerFromId = function(source)
return ESX.Players[tonumber(source)]
return ESX.Players[tonumber(source)]
end
ESX.GetPlayerFromIdentifier = function(identifier)
for k,v in pairs(ESX.Players) do
if v.identifier == identifier then
return v
end
end
for k,v in pairs(ESX.Players) do
if v.identifier == identifier then
return v
end
end
end
ESX.RegisterUsableItem = function(item, cb)
ESX.UsableItemsCallbacks[item] = cb
ESX.UsableItemsCallbacks[item] = cb
end
ESX.UseItem = function(source, item)
ESX.UsableItemsCallbacks[item](source)
ESX.UsableItemsCallbacks[item](source)
end
ESX.GetWeaponList = function()
return Config.Weapons
return Config.Weapons
end
ESX.GetWeaponLabel = function(name)
name = string.upper(name)
local weapons = ESX.GetWeaponList()
for i=1, #weapons, 1 do
if weapons[i].name == name then
return weapons[i].label
end
end
name = string.upper(name)
local weapons = ESX.GetWeaponList()
for i=1, #weapons, 1 do
if weapons[i].name == name then
return weapons[i].label
end
end
end
ESX.CreatePickup = function(type, name, count, label, player)
local pickupId = (ESX.PickupId == 65635 and 0 or ESX.PickupId + 1)
local pickupId = (ESX.PickupId == 65635 and 0 or ESX.PickupId + 1)
ESX.Pickups[pickupId] = {
type = type,
name = name,
count = count
}
ESX.Pickups[pickupId] = {
type = type,
name = name,
count = count
}
TriggerClientEvent('esx:pickup', -1, pickupId, label, player)
TriggerClientEvent('esx:pickup', -1, pickupId, label, player)
ESX.PickupId = pickupId
ESX.PickupId = pickupId
end
File diff suppressed because it is too large Load Diff
@@ -1,24 +1,24 @@
ESX.StartPayCheck = function()
function payCheck()
function payCheck()
local xPlayers = ESX.GetPlayers()
local xPlayers = ESX.GetPlayers()
for i=1, #xPlayers, 1 do
for i=1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
if xPlayer.job.grade_salary > 0 then
xPlayer.addMoney(xPlayer.job.grade_salary)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('rec_salary') .. '~g~$' .. xPlayer.job.grade_salary)
end
if xPlayer.job.grade_salary > 0 then
xPlayer.addMoney(xPlayer.job.grade_salary)
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('rec_salary') .. '~g~$' .. xPlayer.job.grade_salary)
end
end
end
SetTimeout(Config.PaycheckInterval, payCheck)
SetTimeout(Config.PaycheckInterval, payCheck)
end
end
SetTimeout(Config.PaycheckInterval, payCheck)
SetTimeout(Config.PaycheckInterval, payCheck)
end
end