ND-Framework / ND_Police

Police Job & tools for ND Framework includes ESX & QB integration
https://discord.gg/Z9Mxu72zZ6
GNU General Public License v3.0
26 stars 10 forks source link

Cuffing/Issue #24

Open The-Rogers opened 3 months ago

The-Rogers commented 3 months ago

Unable to uncuff players or cut zipties from them, not getting any cuffing audio and can to test for gsr, does not work even after shooting. latest updates for ox files sql, target, inventory ect. and all dependencies started first before ND police, multiple people with the same issues.

TheStoicBear commented 3 months ago

LVC Is the main cause. Have not looked into why.

Start ND_Police. > Start LVC > Try to cuff Result: No Audio / Can't Uncuff.

LVC

TheStoicBear commented 3 months ago

LVC Is the main cause. Have not looked into why.

Start ND_Police. > Start LVC > Try to cuff Result: No Audio / Can't Uncuff.

LVC

Update to this. One solution to fix the issue was

commenting out

local function playsound(entity, sound)
    while not RequestScriptAudioBank("audiodirectory/nd_police", false) do Wait(0) end

    local soundId = GetSoundId()

    PlaySoundFromEntity(soundId, sound, entity, "nd_police_soundset", true)
    ReleaseSoundId(soundId)
    ReleaseNamedScriptAudioBank("audiodirectory/nd_police")
end

Line 157

        playsound(entity or cache.ped, sound[2])

Line 212

            playsound(entity, sound[2])