local ameat = false
local stop = false
function main()
repeat wait(0) until isSampAvailable()
wait(2000)
sampRegisterChatCommand("ameat", function()
ameat = not ameat
addChatMessage(ameat and 'ON' or 'OFF')
end)
local health = getCharHealth(PLAYER_PED)
if...