[Release] Disable vehicles and peds

Hello, basically it does what Title says.
This is client script, so in resources you will have to add client_script ‘script.lua’
https://gist.github.com/nobodyltu/9b691fdcb1022439a1bfb785917296fe

8 Likes

Like a boss!

2 Likes

Ow wow this is neat, mind if i use this as a little example thing on my wiki? Credited of course.

1 Like

@kanersps Oh, of course! I would like you to use “Sycho(nobodyltu)” as a credit name if that wouldn’t be a problem. :slight_smile:

1 Like

@nobody Is there any way you can provide a screenshot of what the resources folder should look like?

@Luke192 https://gyazo.com/f2e97d75bb026a246071ca0f958f80f5 . Folder noped is needed. U can download it from here if u dont want to make it yourself https://dl.dropboxusercontent.com/u/90800505/noped.rar

2 Likes

Hi!

When I try to set SetPedDensityMultiplierThisFrame(1.0) and SetParkedVehicleDensityMultiplierThisFrame(1.0) there is always no peds… it’s normal? I like to have only peds, no vehicle…

Thanks

Is it possible to do something like this script but to ENABLE animals server side?

1 Like

You could just spawn them randomly using CreatePed

1 Like

Animals are blocked in the game EXE population code, you can file a feature request to the developers to have this changed. :whale:

when i try this my game crashed, is it still working?

I don’t know how to install this, please help?

where is your wiki ?

can you upload the folder ? pls. thx in advance .

there is no wiki, just take that code, create a new folder with 2 new text documents and change the extention to .lua , first notepad , remane it __resource , open it and add client_script ‘client.lua’ inside it, now on the second one, you rename it client.lua, open it , add the code , save the files. Now you should have client.lua and __resource.lua , take the folder with those 2 inside it and put it into server/resources , add the folder name to citmp-server.yml , clear the cache and start the server.

2 Likes

thx for the help appreciate it

There is a wiki. It’s available at http://wiki.fivem.net/.

oh , i tought is the old one that was down :smiley:

Is there a way to disable only police peds?

2 Likes

@MJRamon

If there is a way with the police mod fivem_cops but this in French and you will have to edit everything from scratch but you can do several things with the ^^ I leave you link