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.
thx for the help appreciate it
oh , i tought is the old one that was down
Is there a way to disable only police peds?
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
It’s in French ? It’s also in English (config/config.lua : lang = ‘en’)
Yes, but I mean you have to translate if you want to change things, for example I am Spanish, not English or French, I have to adapt to my language
it’s work now ??? I tried but when i join server i get couldn’t load resources noped
can u help me i install it everything is working but i still hear sounds like someone is hiting the horn or police siren can how can i remove theM ?
i need this too, how can i remove all native sounds from removed vehicles and peds?
I found a BIG BIG BUG.
When you are the first person on the server, and there are more People on this server, and the game of the First Person crashes (Timed out after 10 Seconds), then the Script resets, that means, that there are vehicles again.
You must create a file resource.lua like inside your others folders…
That’s the same on all servers that use this sadly
guys the problem was in the _resource.lua file
we downloaded it from someone who wrote the file name incorrectly and also the resource manifest version was old, everything should look like this:
in the _resource.lua file :
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
client_script 'client.lua'
in the client.lua file:
Citizen.CreateThread(function()
while true
do
-- These natives has to be called every frame.
SetVehicleDensityMultiplierThisFrame(0.0)
SetPedDensityMultiplierThisFrame(0.0)
SetRandomVehicleDensityMultiplierThisFrame(0.0)
SetParkedVehicleDensityMultiplierThisFrame(0.0)
SetScenarioPedDensityMultiplierThisFrame(0.0, 0.0)
local playerPed = GetPlayerPed(-1)
local pos = GetEntityCoords(playerPed)
RemoveVehiclesFromGeneratorsInArea(pos['x'] - 500.0, pos['y'] - 500.0, pos['z'] - 500.0, pos['x'] + 500.0, pos['y'] + 500.0, pos['z'] + 500.0);
-- These natives do not have to be called everyframe.
SetGarbageTrucks(0)
SetRandomBoats(0)
Citizen.Wait(1)
end
end)
also, don’t forget to start the script in the server config file
Reupload it please, the link is no longer active
@Sasquatch-Gaming This resource is from 2016 and the author has not been online since 2016 so the link probs wont be updated plus this is most likely not a FX server script
DensityMultiplier = 0.00
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
SetVehicleDensityMultiplierThisFrame(DensityMultiplier)
SetPedDensityMultiplierThisFrame(DensityMultiplier)
SetRandomVehicleDensityMultiplierThisFrame(DensityMultiplier)
SetParkedVehicleDensityMultiplierThisFrame(DensityMultiplier)
SetScenarioPedDensityMultiplierThisFrame(DensityMultiplier, DensityMultiplier)
end
end)
Add anywhere client side.