Enlevenpcdroparmas

Hello All
What is it “Enlevenpcdroparmas” please ?
0202020202

if you would have looked at the forums with the 100’s of posts you would know what this is.

when i type Enlevenpcdroparmas
i see only that post

its a resource causing the problem ,you added the resource find it and fix it or remove it.

ok thanks you, i will check but i have a lot resource i dont have any folder or file whit this name “Enlevenpcdroparmas"

i dont have any folders or files whit this name “Enlevenpcdroparmas"

Are you the owner of the server? Since it a resource that gets added to your client by the server.

If it’s not your server, contact the server owner.

yes i’am the owner syntasu

There should be a folder called “enlevenpcdroparmes” in your resources folder.

Send a screenshot of you server root folder if you cannot find the folder

yes your right i find it now thank you so much i’ts crazy two files take -25 of fps
enlevenpcdroparmes.rar (811 Bytes)

do you have a other solution like one other resource who make the same as this one?

I have looked at the script and found the following things to cause the resource to be slow:

  • Looping over all ped twice, you can do the same logic inside the ped iterator
  • Calling the ped iterator itself way too often.

Replace the code in client/client.lua with this, should have the same functions:

function SetWeaponDrops()
    local handle, ped = FindFirstPed()
    local finished = false 

    repeat 
        if not IsEntityDead(ped) then
            SetPedDropsWeaponsWhenDead(peds, false) 
        end
        finished, ped = FindNextPed(handle)
    until not finished

    EndFindPed(handle)
end

Citizen.CreateThread(function()
    while true do
        SetWeaponDrops()
        Citizen.Wait(500)
    end
end)

Also we only call the ped iterator twice a second instead of 60+ times per second, should make a huge difference in peformance. As you probably won’t need to check more often than 2x a per second to see if a ped died.

2 Likes

Thanks You so much Syntasu. i did it and i restart the serveur now

affectively it works. thank you very much.
you make me happy

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.