function main()
while not isSampAvailable() do wait(0) end
requestAnimation('DANCE')
while true do wait(0)
if isKeyDown(82) and not sampIsChatInputActive() then
if a == 0 then
if hasAnimationLoaded('DANCING') then
sampSendChat('/healme')
taskPlayAnim(playerPed, 'DANCE_LOOP', 'DANCING', 4.0, true, false, false, false, -1)
else
displayHud(false)
writeMemory(0xBA676C, 1, 2, true)
end
else a = 1 end
elseif a == 1 then
displayHud(true)
a = 0
taskPlayAnim(playerPed, 'DANCE_LOOP', 'DANCING', 4.0, true, false, false, false, 5)
writeMemory(0xBA676C, 1, 0, true)
end
end
end