Jota Dev Ammunation Robbery
Here you can see the documentation to learn how to install our store's ammunition theft system.

How to start the script for its correct operation:
Download and install ProgressBar
If you are using esx, I recommend using ox_lib for the progress bar, it is the one that the script uses by itself, so you should install and put the progress bar, in case you do not want to use ox_lib in CEditable.lua, you can add any progress bar you want.
Put in your server.cfg
# JotaDev Ammunation Robbery
ensure jc_ammu_robbery
This is the script configuration:
Config = {}
Config.RequiredCops = 0 -- Minimo de policías en servicio para poder robar las ammunations
Config.RequiredCopsEncargos = 0 -- Minimo de policías en servicio para poder hacer encargos
Config.Framework = "" -- ingrese qb o esx depende de tu framework
Config.NPC = {
coords = vector3(1509.834, -2152.00, 77.419), -- NPC De venta de los items que coges en la ammunation
heading = 88.0,
pedModel = 'g_m_y_mexgang_01'
}
Config.Items = { -- Items de la tienda ilegal
{ item = "at_clip_drum", label = "Cargador Extendido", price = 300, type = "item" },
{ item = "lockpick", label = "Ganzuas", price = 500, type = "item" },
{ item = "WEAPON_SNSPISTOL", label = "Pistola SNS", price = 25000, type = "weapon" }, -- Solo para esx, si usas qb core utilizalo como item ({ item = "weapon_snspistol", label = "Pistola SNS", price = 2500, type = "item" })
{ item = "WEAPON_KNIFE", label = "Cuchillo", price = 750, type = "weapon" }, -- Solo para esx, si usas qb core utilizalo como item
{ item = "WEAPON_ASSAULTRIFLE", label = "Ak 47", price = 69750, type = "weapon" }, -- Solo para esx, si usas qb core utilizalo como item
{ item = "at_scope_holo", label = "Mirilla", price = 450, type = "item" },
{ item = "at_suppressor", label = "Silenciador", price = 1750, type = "item" },
{ item = "WEAPON_CARBINERIFLE", label = "Carabina Especial", price = 120750, type = "weapon" }, -- Solo para esx, si usas qb core utilizalo como item
{ item = "armour", label = "Chaleco Antibalas", price = 750, type = "item" }, -- Solo para esx, si usas qb core utilizalo como item
{ item = "WEAPON_HEAVYPISTOL", label = "Pistola de Combate", price = 10200, type = "weapon" }, -- Solo para esx, si usas qb core utilizalo como item
{ item = "WEAPON_MACHETE", label = "Machete", price = 1200, type = "weapon" }, -- Solo para esx, si usas qb core utilizalo como item
{ item = "ammo-9", label = "Municion Pistola", price = 1200, type = "item" }
}
Config.MoneyType = "black" -- opciones: "cash" o "black"
Config.Encargos = { -- Encargos disponibles en el UI para poder hacer.
{
id = "entrega_paquete",
title = "Entrega al Cliente",
description = "Recoge al cliente en una localizacion privada y entregalo donde le digan.",
reward = 3000,
type = "entrega_paquete",
},
{
id = "encargo_vehiculo",
title = "Distribución de Vehículos Ilegales",
description = "Ve hacia la localización indicada y entrega el vehículo donde le indiquen.",
reward = 2500,
type = "entrega_vehiculo",
}
}
Config.AmmuRobberies = {
[1] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(23.23396, -1105.78, 29.797, 160.0), -- Coordenada del NPC donde se le apunta
allowedWeapons = { -- Armas necesarias para poder iniciar el robo
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
cooldown = 20, -- En minutos, tiempo para poder volver a empezar el robo de esta tienda
vitrinas = { -- Lo que te va a dar las vitrinas al robarlas
{ -- (Esta opcion es solo para ESX ya que para qb core las armas son items, puedes ponerla como items quita esta opcion)
coords = vector3(20.14961, -1106.05, 29.797),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{ -- Armas (solo esx si es qb core, pon como los items)
coords = vector3(22.09712, -1106.76, 29.797),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{ -- Dinero
coords = vector3(22.66637, -1109.90, 29.797),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{ -- Items
coords = vector3(18.32809, -1110.15, 29.797),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(17.72739, -1111.95, 29.797),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[2] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(253.4566, -51.6751, 69.941, 64.12),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(252.6417, -50.1051, 69.941),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(249.3121, -46.3859, 69.941),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(247.5002, -45.7197, 69.941),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(249.5092, -50.5762, 69.941),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(253.1575, -48.2545, 69.941),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[3] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(-1304.38, -395.897, 36.695, 75.36),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(-1310.92, -390.473, 36.695),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-1305.45, -394.180, 36.695),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-1304.97, -392.341, 36.695),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(-1308.44, -395.075, 36.695),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(-1309.01, -390.998, 36.695),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[4] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(841.1325, -1035.30, 28.194, 359.91),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(842.5263, -1033.97, 28.194),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(844.4509, -1033.97, 28.194),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(840.8970, -1031.36, 28.194),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(844.8029, -1027.66, 28.194),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(844.7955, -1029.56, 28.194),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[5] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(2566.666, 292.6357, 108.73, 357.66),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(2570.409, 298.3310, 108.73),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(2570.307, 300.3092, 108.73),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(2569.968, 293.8780, 108.73),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(2567.902, 293.8872, 108.73),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(2566.454, 296.5462, 108.73),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[6] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(-3172.98, 1089.551, 20.838, 243.64),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(-3172.26, 1087.755, 20.838),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-3173.03, 1086.027, 20.838),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-3169.36, 1088.170, 20.838),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(-3167.31, 1083.115, 20.838),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(-3169.18, 1083.873, 20.838),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[7] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(-1118.00, 2700.571, 18.554, 219.23),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(-1118.08, 2698.763, 18.554),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-1119.60, 2697.506, 18.554),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-1115.22, 2697.857, 18.554),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(-1115.66, 2692.453, 18.554),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(-1117.00, 2693.934, 18.554),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[8] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(1693.157, 3761.913, 34.705, 226.58),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(1693.234, 3760.102, 34.705),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(1694.817, 3755.417, 34.705),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(1696.208, 3753.994, 34.705),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(1696.239, 3759.337, 34.705),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(1691.869, 3758.582, 34.705),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
[9] = {
npcModel = "s_m_y_ammucity_01",
npcCoords = vector4(-330.688, 6085.902, 31.454, 220.81),
cooldown = 20,
allowedWeapons = {
[`weapon_carbinerifle`] = true,
[`weapon_assaultrifle`] = true
},
vitrinas = {
{
coords = vector3(-330.742, 6084.016, 31.454),
rewardType = "weapon",
weapons = { "WEAPON_SNSPISTOL", "WEAPON_PISTOL"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-327.878, 6077.874, 31.454),
rewardType = "weapon",
weapons = { "WEAPON_KNIFE", "WEAPON_SWITCHBLADE"},
weaponAmmo = {min = 150, max = 200}
},
{
coords = vector3(-332.118, 6082.669, 31.454),
rewardType = "money",
moneyAmount = {min = 13000, max = 15000}
},
{
coords = vector3(-327.787, 6083.176, 31.454),
rewardType = "item",
items = { "armor", "ammo_rifle", "at_suppressor"},
itemAmount = {min = 0, max = 2}
},
{
coords = vector3(-329.280, 6079.246, 31.454),
rewardType = "item",
items = { "ammo-9", "at_clip_drum", "armour"},
itemAmount = {min = 20, max = 40}
}
}
},
}
if Config.Framework == 'qb' then
QBCore = exports['qb-core']:GetCoreObject()
elseif Config.Framework == 'esx' then
ESX = exports["es_extended"]:getSharedObject()
else
print '^1[^jc_ammu_robbery^1] ^2Framework No encontrada, ingrese esx o qb^0'
return
end
Last updated