Client
Using canary? Yes but doesn’t matter
Incident
Summary: Using the input “INPUT_THROW_GRENADE” to throw a nade while aiming and using the SET_ENABLE_HANDCUFFS native enabled will make the client crash.
Steps to reproduce:
- Step one : give a firearm weapon (pistol, smg, shotgun…) and a throwable weapon (bzgas, stickybomb, flare…)
- step two : enable SET_ENABLE_HANDCUFFS on the current ped
- step three : Aim and press G or whatever is defined on your INPUT_THROW_GRENADE bind.
Server/Client? Client crash
Files for repro (if any):
-- Functions
local function GiveReproWeapons()
GiveWeaponToPed(PlayerPedId(), `weapon_bzgas`, 20, true, true)
GiveWeaponToPed(PlayerPedId(), `weapon_pistol`, 250, true, true)
end
-- Thread
Citizen.CreateThread(function()
-- Step ONE : Give weapons to player
GiveReproWeapons()
-- Step TWO : Make sure player have weapon in hand, and enable handcuffs
SetEnableHandcuffs(GetPlayerPed(-1), true)
-- Step THREE : Aim and Press "G" to throw the gas WHILE aiming
end)
Error screenshot :
Any additional info:
Video using the script shared :