Oyuncu göreve başladığı zaman data ver daha sonra o data yardımı ile tuşa basmasını engelle.
client-side
butons = {   
   {"GorevAktif", -- görevin datası
      {
     ["B"] = true, -- iptal edilecek tus
      }  
   },   
}
addEventHandler("onClientKey", root, function(button, press) -- oyuncu herhangi bir tuşa bastığında
   for i,v in pairs(butons) do -- butons tablosunu döndür
      local veri, tus = unpack(v) -- tablodaki verileri dğeişkene koy
      if tus[button] and getElementData(localPlayer, veri) then -- eğer basılan uton tusların içinde varsa ve oyuncunun datası bellirtilen data ise
         cancelEvent() -- iptal et
      end
   end      
end)