Jump to content

How to check cast spell?


ToShuk Marusenko

Recommended Posts

Posted

i try to do this, but its work on all spell, not only for 71

 

local function ChatSystem(event, player, spell, skipCheck) 

if (player:IsCasting(71) == true) then
print "CAST"
end
end 

RegisterPlayerEvent(5, ChatSystem) 


 

Posted

i try to make this, but nothing happent 


 

local function ChatSystem(event, player, spell, skipCheck) 
if (player:GetCurrentSpell(2) == 71) then
print "DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
end
end 

RegisterPlayerEvent(5, ChatSystem) 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use