• HOLD UP! A robbery system for shop NPC
    10 replies, posted
[IMG]http://image.noelshack.com/fichiers/2017/19/1494357443-banner.png[/IMG] [B][U]DESCRIPTION :[/U][/B] You can make and place different shop NPC with entities, props or weapons. The difference between these NPC and others is that these shops can be robbed! To do this, the player just has to be near the NPC and aim at him to trigger the system. The NPC will put his hands up, and a progress bar will appear. The NPC will drop money multiple times, with some time in between the drops. At the same time, the police will be warned and get a place marker on their screen at the location of the robbery. You also have the possibility to deactive the NPC when there are players in a certain job ( ex: When a player is Gundealer, the NPC "Gundealer" is deactivate) or to restrict the shop to a list of jobs. [B][U]CONFIGURATION :[/U][/B] - Entities that can be purchased from the NPC, the purchase limit, possibility of adding a customcheck. - If the NPC can be robbed or not. - The amount of money the NPC will drop every time - How many times the NPC will drop money - How many seconds are in between each money drop Example: If you make the NPC drop 4 bags with 5 seconds in between, the progress bar will be 20 seconds. - The duration of how long a player needs to point a gun at the NPC to trigger the robbery. - Shop colors are completely customisable. - Restrict jobs that are not allowed to use the shop. - The health of the NPC, his time to respawn and if he can be killed. - Restrict the NPC shop to be used only if there are no players as a specific team. So you can restrict the access to the Gundealer NPC to be used if there is no players playing as gundealers. [IMG]http://s3.scriptfodder.com/script_media/0d3a5f68e73cca77569caa42b7d1812a.png[/IMG] [IMG]http://s3.scriptfodder.com/script_media/1c651235ad326c4e3cd1cdc00b8920f0.png[/IMG] [IMG]http://s3.scriptfodder.com/script_media/b8f174fb5964828b4325a2495266f405.png[/IMG] [IMG]http://s3.scriptfodder.com/script_media/fbce7057dad2cceeb1e0d2647eeb772d.png[/IMG] [B]To download :[/B] [URL="https://github.com/Venatuss-S/HOLD-UP-NPC/tree/master"]https://github.com/Venatuss-S/HOLD-UP-NPC/tree/master[/URL]
Funny thing is something like this just got put up on sf, nice work non the less
I just got memed so hard......
[QUOTE=Owjo;52207032]I just got memed so hard......[/QUOTE] There goes sales :v:
[QUOTE=VeXan;52207311]There goes sales :v:[/QUOTE] First it got leaked, now it's been cloned... Life just gets worse and worse XD
[QUOTE=Owjo;52207833]First it got leaked, now it's been cloned... Life just gets worse and worse XD[/QUOTE] rip ur $$$
[QUOTE=Owjo;52207833]First it got leaked, now it's been cloned... Life just gets worse and worse XD[/QUOTE] aha sorry man
Thats quite a good concept specialy since those used to end up on gmodstore. I' ll look into it, see if i can find anything to improve :smile:
Nice ! Good addon made on French :D
[QUOTE] [ERROR] addons/hold_up_npcs/lua/autorun/client/cl_autorun_npc.lua:7: attempt to call method 'GetActiveWeapon' (a nil value) 1. unknown - addons/hold_up_npcs/lua/autorun/client/cl_autorun_npc.lua:7 [/QUOTE]
You should add the ability to save bought items into an inventory. That would make this the first with both robbery and inventory support, would be great
Sorry, you need to Log In to post a reply to this thread.