nobody
1
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
Ow wow this is neat, mind if i use this as a little example thing on my wiki? Credited of course.
1 Like
nobody
4
@kanersps Oh, of course! I would like you to use “Sycho(nobodyltu)” as a credit name if that wouldn’t be a problem. 
1 Like
@nobody Is there any way you can provide a screenshot of what the resources folder should look like?
nobody
6
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. 
when i try this my game crashed, is it still working?
I don’t know how to install this, please help?
can you upload the folder ? pls. thx in advance .
hbk
15
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
Scott
17
There is a wiki. It’s available at http://wiki.fivem.net/.
hbk
18
oh , i tought is the old one that was down 
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