View Single Post
04/17/18, 08:54 PM   #3
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
So your goal is to lock the item? I haven't tested this, but is this what you want?

lua Code:
  1. if CanItemBePlayerLocked(bagId,slotId) then
  2.     SetItemIsPlayerLocked(bagId,slotId,true)
  3. else
  4.     d("Item cannot be locked.")
  5. end

Last edited by Rhyono : 04/19/18 at 12:38 PM. Reason: Fixed for future viewers
  Reply With Quote