Universal Script 📌
482 Views
13 Executions

Auto farm

Universal Script 📌
Zakir_m2
Zakir_m2First script
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Autofarm esey

View Raw
-- El Paso Texas Border Roleplay Script

-- Configuration
local borderX = -1235.537 -- El Paso Texas Border X Coordinate
local borderY = -1360.907 -- El Paso Texas Border Y Coordinate
local usaX = -1356.309 -- USA X Coordinate
local usaY = -1360.907 -- USA Y Coordinate
local moneyLocation = vector3(-1354.437, -1360.907, 34.524) -- Money Location
local washingMachineLocation = vector3(-1355.408, -1360.907, 34.524) -- Washing Machine Location
local sneakingSpeed = 5 -- Sneaking Speed
local teleportSpeed = 10 -- Teleport Speed
local interval = 5000 -- Interval between actions

-- Variables
local money = 0
local isSneaking = false
local isTeleporting = false

-- Functions
function getSneakingLocation()
    return vector3(math.random(borderX - 10, borderX + 10), math.random(borderY - 10, borderY + 10), 34.524)
end

function getTeleportLocation()
    return vector3(math.random(usaX - 10, usaX + 10), math.random(usaY - 10, usaY + 10), 34.524)
end

function movePlayerToLocation(location)
    while (GetEntityCoords(GetPlayerPed(-1)) - location).magnitude > 1 do
        SetEntitySpeed(GetPlayerPed(-1), sneakingSpeed)
        SetPedToRagdoll(GetPlayerPed(-1), 1, 1, 1, 0, 0, 0)
        Wait(0)
    end
end

function teleportPlayerToLocation(location)
    while (GetEntityCoords(GetPlayerPed(-1)) - location).magnitude > 1 do
        SetEntitySpeed(GetPlayerPed(-1), teleportSpeed)
        SetPedToRagdoll(GetPlayerPed(-1), 1, 1, 1, 0, 0, 0)
        Wait(0)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
64.2k
210.1k
Bumped 28 minutes ago
Key System
Universal Script 📌
13.9k
1.7k
Bumped 2 hours ago
Universal Script 📌
15.9k
11.6k
Bumped 2 hours ago
Script hub
2.0k
787
Bumped 3 hours ago
Key System
Universal Script 📌
30.6k
790.4k
Bumped 3 hours ago
Script hub
174
4
Approved 4 hours ago
Key System