Taken down, CFX pls delete this post

This is my first release in the forum.
I am not a real LUA Developer and this script was created in about 15 minutes, so don’t mind me if there are performance issues or something.

What is this?
→ just a bunch of snippets of all the small scripts out there in one bigger script
→ This script allows you to easily control the spawnrates of NPCs on your server.

Features

  • Control NPC Traffic, parked cars, citizens on walkway and scenario peds
  • disable Cops
  • Prevent users from stealing driving NPC vehicles
  • Disable Dispatch service, to prevent medics arriving to death scenes etc.
  • Disable NPC gangs attack, to disable NPC gangs attacking users
  • Disable getting free weapons when entering vehicles such as Polmav etc.
  • Prevent NPCs from dropping weapons when killed

All toggable in Config.lua!


Download
github


If you find any errors or want me to add something write in the topic :smiley:

Have fun with my script!
If you make changes, please fork and make a pull request on github :smiley:

Code is accessible Yes
Subscription-based No
Requirements None
Support Yes
4 Likes

There’s nothing here…

1 Like

where is download or any text xD

1 Like

awesome release but next time please add the file

1 Like

Should be there now :smiley:

Should be fixed now, i’m sorry

Done now :smiley:

you take free resource and make them as one ?

I just used all the FiveM natives :slight_smile:
And some snippets from the esx discord.

2 Likes

ok good work so :slight_smile:

Some notes you might want to look at:

Threads in Wait 0, Wait 10, and Wait 1 should all be running in the same thread.
backtick > GetHashKey and there’s no need to run it inside a loop.
And consider maybe using baseevents for the vehicle theft prevention.
Also I’m pretty sure SetRelationshipBetweenGroups doesn’t need to be ran in a loop.

3 Likes

this is just compile from all snippets out there

Doesnt work

Will work on that soon

Yes that’s right :smiley:

1 Like

Thank you, I will make it more performance friendly today.

1 Like

this is something i been struggling with to get a script like this with all it has to work not sure what im doing wrong we are on esx final really could use help i am in process of making a updated ymap car genarater remover for all the un wanted vehicles i hove script that dose remove fire trucks and ems from showing up but pd still drives around

Well, you can deactivate EMS NPC dispatches, which stops Medics and firemen from showing up, if that was your question…

yes i have but all show up

download the latest version from GitHub. Should be fixed now :smiley: GitHub - Frank187Dev/BetterNPCControl: This FiveM Script allows you to control the NPC Spawning on your fivem server.