[SOLVED] Catch left click on frame?
#5
(01-02-2016, 02:07 AM)NiLSPACE Wrote: Try the OnTakeDamage hook.
function OnTakeDamage(a_Receiver, a_TDI)
   if (a_TDI.Attacker == nil or not a_Receiver:IsItemFrame() or not a_TDI.Attacker:IsPlayer()) then
      return false
   end
   -- Your code
end

You're ahead of me Smile Thank you!
Reply
Thanks given by:


Messages In This Thread
[SOLVED] Catch left click on frame? - by DrMasik - 01-01-2016, 03:07 AM
RE: Catch left click on frame? - by NiLSPACE - 01-01-2016, 03:23 AM
RE: Catch left click on frame? - by DrMasik - 01-02-2016, 01:52 AM
RE: Catch left click on frame? - by NiLSPACE - 01-02-2016, 02:07 AM
RE: Catch left click on frame? - by DrMasik - 01-02-2016, 02:29 AM



Users browsing this thread: 1 Guest(s)