Untitled
unknown
plain_text
a year ago
960 B
8
Indexable
-- Automated farming script for FiveM
Citizen.CreateThread(function()
while true do
-- Wait time between actions (adjust as needed for realism)
Citizen.Wait(5000) -- 5000 ms = 5 seconds
-- Generate random IDs for the minigame
local start_id = "minigame:request_create_and_start:" .. math.random(10000, 99999)
local complete_id = "minigame:request_complete:" .. math.random(10000, 99999)
-- Trigger farming start
TriggerServerEvent('__ox_cb_minigame:request_create_and_start', "farmer", start_id, 7, 19)
print("[Automated Farming] Triggered Start with ID: " .. start_id)
-- Simulate completing the minigame
Citizen.Wait(2000) -- Short delay to mimic natural action
TriggerServerEvent('__ox_cb_minigame:request_complete', "farmer", complete_id)
print("[Automated Farming] Triggered Complete with ID: " .. complete_id)
end
end)
Editor is loading...
Leave a Comment