CLEO Help Someone who can make this .lua script for cleo .cs

CLEO related
Status
Not open for further replies.

Excelds

Active member
Joined
Apr 17, 2021
Messages
101
Reaction score
11
Location
Earth
Hi guys i want this script that is for .lua (moonloader) make it to .cs (cleo). So the same script but to work with cleo .cs

Code:
require 'lib.moonloader'
local sampev = require 'lib.samp.events'

function main()
    if not isSampfuncsLoaded() or not isSampLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage("[{fd3737}Excelds Mods{FFFFFF}] са заредени.", -1)
        sampAddChatMessage("[{fd3737}Auto-Heal{FFFFFF}] /aheal", -1)
    sampRegisterChatCommand("aheal", active)
    active = false
    while true do
    wait(0)
        health = getCharHealth(PLAYER_PED)
        if health < 40 and health > 5 and active then
            sampSendChat("/healme")
            wait(1000)
        end
    end
end

function active()
    if active == true then
        active = false
        sampAddChatMessage("[{fd3737}Auto-Heal{FFFFFF}] изключен.", -1)
    else
        active = true
        sampAddChatMessage("[{fd3737}Auto-Heal{FFFFFF}] включен.", -1)
    end
end
 
Status
Not open for further replies.
Top