Disables the R key to hit people when changing bullets

when holding a gun and standing next to a player. When I changed the bullets, I accidentally beat them to death. how to replace ammo without causing damage to nearby people

Put this in a client script

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(5)
		DisableControlAction(1, 140, true)
	end
end)
2 Likes

Where can I find this file [clinte script]

Look at another addon and the __resource.lua. Files in client_scripts array are all “client scripts”.

Hello there,

Thank you for taking your time to provide the community with a small but useful script. :+1:

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