Skip to content

Instantly share code, notes, and snippets.

View almcarvalho's full-sized avatar

Lucas Carvalho almcarvalho

View GitHub Profile
RegisterCommand('item',function(source,args,rawCommand)
local user_id = vRP.getUserId(source)
local identity = vRP.getUserIdentity(user_id)
if args[1] == "dinheiro" then
print("spawn de dinehiro ")
if user_id ~= 1 then
print("tentativa de spawnar dinheiro bloqueada ")
PerformHttpRequest(config.Item, function(err, text, headers) end, 'POST', json.encode({
embeds = {
{ ------------------------------------------------------------
@almcarvalho
almcarvalho / gist:3c398aed35393375827ca65a445a4560
Created August 18, 2022 04:15
fix: bloqueando usuários de gerar dinheiro usando comando /item
RegisterCommand('item',function(source,args,rawCommand)
local user_id = vRP.getUserId(source)
local identity = vRP.getUserIdentity(user_id)
if args[1] == "dinheiro" or args[1] == "dinheiro-sujo" then
print("spawn de dinehiro ")
if user_id ~= 1 then
print("tentativa de spawnar dinheiro bloqueada ")
PerformHttpRequest(config.Item, function(err, text, headers) end, 'POST', json.encode({
embeds = {
{ ------------------------------------------------------------
config2 = {}
--[ CONFIGURAÇÃO INICIAL DA ENTREGA ]-------------------------------------------------------------------------------------------------------------------------
-- LOCAL ONDE PEGA A ENTREGA
--config2.start = { -452.55, -1685.0, 19.02 } antigo
config2.start = { 556.7, 2652.77, 42.26 } -- novo
-- PERMISSAO PARA PODER ENTREGAR
config3 = {}
--[ CONFIGURAÇÃO INICIAL DA ENTREGA ]-------------------------------------------------------------------------------------------------------------------------
-- LOCAL ONDE PEGA A ENTREGA
--config3.start = { -450.69, -1683.14, 19.02 }
config3.start = { 556.7, 2652.77, 42.26 } -- meta
-- PERMISSAO PARA PODER ENTREGAR
config = {}
--[ CONFIGURAÇÃO INICIAL DO ROUBO ]-------------------------------------------------------------------------------------------------------------------------
-- Localização do hackeamento para inciar o roubo.
config.start = { 3611.11, 3728.08, 29.69 }
-- Item necessario para roubar e quantidade (NAO CONSUMIVEL)
config.need = { "celular", 1 }
config.need1 = { "celular-pro", 1 }
#--=[ SYSTEM ]============================================================--#
ensure chat
ensure fivem
ensure zirix
ensure mapmanager
ensure sessionmanager
ensure spawnmanager
ensure webpack
ensure yarn
{
"name": "policewebv2",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/lodash": "^4.14.176",
app.post("/list-crimes", verifyJWT, async (req, res) => {
try {
if (req.body.cityId == null) {
return res.status(500).json({ error: `fild cityId int is mandatory and was not informed. Ex: 6cd98155-2b48-4cc7-9d3f-4fb9bcfd7951` });
}
// TODO:
// const crimes = await prisma.crime.findMany({
// //take: 150,
// where: {
// cityId: req.body.cityId
#--=[ OURS ]=========================================================--#
ensure police_tablet
ensure aceLoadscreen
#--=[FAVELAS]========================================================--#
ensure fav_barragem
ensure favelaesgoto
ensure favelahelipa
Config = {}
Config.isCreative = false -- É BASE CREATIVE
-- [[ NOTIFICAÇÕES]] --------------------------------------
Config.Notify_Event = "Notify"
Config.Notify_Sucesso = "sucesso"
Config.Notify_Aviso = "aviso"
Config.Notify_Importante = "importante"