Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cuffing/Issue #24

Open
The-Rogers opened this issue May 16, 2024 · 8 comments
Open

Cuffing/Issue #24

The-Rogers opened this issue May 16, 2024 · 8 comments

Comments

@The-Rogers
Copy link

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.

@The-Rogers The-Rogers changed the title Bug/issue Cuffing/Issue May 16, 2024
@TheStoicBear
Copy link

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
Copy link

TheStoicBear commented May 20, 2024

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])            

@Cljones2
Copy link

Cljones2 commented Dec 6, 2024

@TheStoicBear
Copy link

https://github.com/Cljones2/ND_Police_handcuffs

I'm unsure if this will truly fix the issue as the issue is described as too many Streaming Audio files. Yet worth a shot! @The-Rogers

@Cljones2
Copy link

Cljones2 commented Dec 6, 2024

no it wont fix the nd police but its an alternative better than not having it

@TheStoicBear
Copy link

no it wont fix the nd police but its an alternative better than not having it

Right. Like when I made my PD Menu. Same reason xD

@Cljones2
Copy link

Cljones2 commented Dec 6, 2024

if they aren't going to fix the problem we have to work out an alternative until they do fix it :) hopefully this is only temp :)

@Andyyy7666
Copy link
Member

I'm unsure if this will truly fix the issue as the issue is described as too many Streaming Audio files. Yet worth a shot! @The-Rogers

The reason sound may not play is because it's only being requested on the client of the cuffing player, it should be requested on both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants