Skip to content

SpikE-Odets/esx_jewelrobbery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Edit - I have switched the police check to using my new script esx_jobnumbers. You will need to download this script as well and make sure it is started in your server config before esx_jewelrobbery is.

esx_jewelrobbery

This script adds the abality to rob the Vangelico Jewelry Store for a server.

Features:

Store can be robbed by multiple players at same time.  No need to shoot to start robbery.
Store can be closed by police after robbery attempt - to keep smash and grab happening over and over.
Store can auto close if not enough police on for a robbery.
If store closes while you are inside, Employee's will help you outside after explaining the store is closed.

Each weapon that is allow to break glass can have a different break chance percent.
Each Item that can drop from a glass box - can have different drop percent(rare) as well as max amount.

Server is able to set UnAuthJobs that will not be able to rob the Jewerly Store.
Server can set multiple Police Job by name that will receive robbery notification / be able to close store.

Sounds for breaking/failing glass case.  Breaking sound can not be turned off / fail sound can be turned off.

Security feature to keep one box paying out multiple times.

Settings:

AllowedWeapons:  List for Weapon break chance.  Each weapon can have unique break chance.  If set to 100 will break first try.

ItemDrops:  List for Items allows for unique drop chance for each item, as well as max amount player can receive per box.

UnAuthJobs:  List for server jobs that are not allowed to rob the jewelry store.

Config.Closed:  This setting will close the store if the number of police on the server is lower then the Config.MinPolice.

Config.AllowPoliceStoreClose:  Allows police to close the store after a robbery until next Store Reset.

Dependences:

https://github.com/SpikE-Odets/esx_jobnumbers

Any comments or questions about the script can be asked in the release post on https://forum.cfx.re/t/esx-jewelrobbery-release/997674/ or stop by https://twitch.tv/spikeodets to see what I am working on next.

SpikE

About

Vangelico Robbery script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages