NPC Bag Robbery

A script by strianodev

No reviews yet.
NPC Bag Robbery main image

Price

Unknown

Full Description

Hello, with this script you will be able to rob the bag to female npc; i’m working on a male robbery business suit version also, but will be a lot different.
Not much to say for this script, in the video you will understand better all the features.
The logic system to get money or item is with ESX but you will be able to edit as you need for any framework. Only some part of the code are with Escrow active. To start a robbery at moment is a command, but you can manage by your side to apply it on a key. For any question feel free to ask in this post and i’ll be happy to help you.

Official video: Youtube

Configuration File Preview
Copy and paste in your favorite text editor to check better.

config.lua

CommandName = “scippo” – The name of the command to do
CooldownTime = 60000 * 5 – Players can rob bag every 5 minutes
TimeChecking = 30000 – How many seconds need the player to check the bag inside (30 seconds defaults)
CheckVehicle = true – If you set this to false, you can be in a vehicle to open the bag robbed
DelayOpen = 30000 – How many seconds to automatically open the bag
CmdMe = ‘me apre una borsa rubata’ – If you need a /me 3D on player (/me need to be configured by your side) choose here the message
MeEnabled = true – if you disable this, no command /me will be run if you check the bag
UnarmWhileSearch = true – If you dont want disarm the player while search put this to false
WeaponNPC = “WEAPON_KNIFE” – Sometimes male ped if are around will attack you with a Knife, let this empty for no weapons ped, only hand fight
NPCAngryWhileSearch = true – Set this to false if you dont need to find a safe place to open the bag

MsgCooldown = “Puoi fare questa operazione ogni " … CooldownTime … " minuti.”
MsgCheckBag = “Stai vedendo cosa c’è nella borsa, attendi ~b~” … TimeChecking/1000 … " ~w~secondi. ~r~Qualcuno ti ha avvistato~w~!"
MsgRobBag = “Hai rubato la borsa, la polizia è stata avvisata.”
MsgOpenBag = “La borsa verrà aperta tra un minuto, ~r~NON ~w~devi essere in un veicolo al termine del tempo.”
MsgNoVeh = “Non devi essere in un veicolo per questa operazione”
MsgNeedWeapon = “Devi essere armato per questa operazione.”
MsgAlredyBag = “Hai già una borsa in mano rubata.”
MsgNoNPC = “Nessun passante con una borsa nelle vicinanze.”
MsgNPCNoVeh = “Il passante non deve essere in un veicolo per questa operazione”
MsgNoBagNPC = “Questo passante non sembri avere una borsa.”
MsgNPCDead = “Il passante non deve essere morto per questa operazione.”
MsgErrorVeh = “Sei in un veicolo, operazione annullata.”
MsgFarBag = “Troppo distante dalla borsa, operazione annullata.”

function notify(msg, timer) – timer if you need use it
SetNotificationTextEntry(‘STRING’)
AddTextComponentSubstringPlayerName(msg)
DrawNotification(false, true)
end

minMoney = 10 – minimum money you will find in the bag
maxMoney = 500 – maximum money you will find in the bag
MsgYouFind = "Nella borsa hai trovato "
MsgYouFindEnd = “~g~$~w~.”
function TakeMoneyRob(Money)
TriggerServerEvent(‘bagrob:TakeMoney’, Money) – Change this part Server Side
end

– CHANGE THIS 2 FUNCTION WITH YOUR POLICE DISPATCH SYSTEM
function PoliceAlertStart(pos) – This is called when the rob start
TriggerServerEvent(“chekjobAnon”, “Furto borsa a passante”, pos)
end
function PoliceAlertOne(pos) – This is called when player will stop to search in the bag
TriggerServerEvent(“chekjobAnon”, “Avvistato ladro frugare in una borsa”, pos)
end

If you like it: Robbery Bag on Tebex

List of all resources:
Tebex Shop

Respect women, don’t try this at home (and out of)!