It is whole script.. this is only who doesnt work.. because when i cut this then drugs work properly
if isTimer(drug9Timer) then
killTimer(drug9Timer)
drug9Timer = nil
resetDrug9Effect()
end
This is in the same script reset timer i guess..
this is on server side
if (itemID==208) then
takeItemFromSlot(source, itemSlot)
exports.global:applyAnimation(source, "FOOD", "EAT_Burger", 4000, false, true, true)
exports.global:sendLocalMeAction(source, "Varonīgi apēd steroīdu tabletes.", source, 255, 0, 0)
exports.global:sendLocalDoAction(source, "Redzams ka muskuļi uzblīst.", source, 255, 0, 0)
setElementHealth(source,getElementHealth(source)-20)
and this is on client side
if (itemID==208) then
doDrug9Effect()