Your server.lua had an issue heres the corrected code:
RegisterNetEvent(“playCuffSound”)
AddEventHandler(“playCuffSound”, function(cuff)
local soundId = GetSoundId()
if cuff then
PlaySoundFrontend(soundId)
end)
end
thankyou :D. I didnt mean to have the play sound in there thankyou for realising my mistake i have fixed that and will be reposting the edited version without the sound as i was planning as it just is better.
fx_version 'cerulean'
games { 'rdr3', 'gta5' }
author 'vexxy'
description 'A script for cuffing and uncuffing yourself'
version '1.0.0'
client_scripts {
'client.lua'
}
You are using GetPlayerPed(-1), should be GetPlayerPed()