[Help] How to disable passenger shooting?

How to Disable passenger using weapon inside the vehicles The NoDriveBy script is not working. no drive by script is working only for drivers

Try this :slightly_smiling_face:
link Here

Citizen.CreateThread(function()
    while true do
        Wait(10)
        local ped = PlayerPedId()
        if IsPedInAnyVehicle(ped) then
            DisableControlAction(0, 24 --[[Attack]], true)
            DisableControlAction(0, 25 --[[Aim]], true)
        else
            Wait(1000)
        end
    end
end)