API Docs made by whoaboutyt_real :P

🔍

Functions

Core API functions available in ERX V1.
local Functions = _G.Functions :P

IsLocalPlayerInOwnVehicle

Boolean

Checks if the local player is currently in their own vehicle.

Returns:
  • boolean - true if in own vehicle, false otherwise
Lua
local inOwnVehicle = Functions:IsLocalPlayerInOwnVehicle()
if inOwnVehicle then
    print("Player is in their own vehicle")
end

GetCurrentLocalPlayerCar

Object

Returns the current vehicle model of the local player.

Returns:
  • string - Vehicle model name or nil if not in vehicle
Lua
local currentCar = Functions:GetCurrentLocalPlayerCar()
if currentCar then
    print("Current vehicle: " .. currentCar)
end

IsLocalPlayerAlive

Boolean

Checks if the local player is currently alive.

Returns:
  • boolean - true if alive, false if dead
Lua
if Functions:IsLocalPlayerAlive() then
    print("Player is alive")
else
    print("Player is dead")
end

GetClosestVehicle

Object

Returns the closest vehicle to the local player.

Returns:
  • Instance - Closest vehicle or nil if none found
Lua
local closestVehicle = Functions:GetClosestVehicle()
if closestVehicle then
    print("Found closest vehicle: " .. closestVehicle.Name)
end

GetRandomVehicle

Object

Returns a random vehicle from the game world.

Returns:
  • Instance - Random vehicle or nil if none available
Lua
if Functions:GetRandomVehicle() then
    print("Found a random vehicle")
end

IsGodModeEnabled

Boolean

Checks if god mode is currently enabled for the local player.

Returns:
  • boolean - true if god mode is enabled
Lua
if Functions:IsGodModeEnabled() then
    print("God mode is active")
end

IsPlayerWanted

Boolean

Checks if the specified player has a wanted level.

Parameters:
  • Player - The player to check
Returns:
  • boolean - true if player is wanted
Lua
print(Functions:IsPlayerWanted(game.Players.LocalPlayer))

ToolIsAnGun

Boolean

Checks if the specified tool is a gun.

Parameters:
  • Tool - The tool instance to check
Returns:
  • boolean - true if tool is a gun
Lua
print(Functions:ToolIsAnGun(Instance.new("Tool")))

TeleportTo

Yields

Teleports the local player to the specified position or CFrame.

Parameters:
  • CFrame | Vector3 - Target position or CFrame
Lua
-- Using CFrame
Functions:TeleportTo(CFrame.new(-749, 85, 713))

-- Using Vector3
Functions:TeleportTo(Vector3.new(-749, 85, 713))

IsPRCMod

Object

Checks if the specified player is a PRC moderator.

Parameters:
  • Player - The player to check
Returns:
  • Instance | nil - Instance if PRC mod, nil otherwise
Lua
print(Functions:IsPRCMod(game.Players.LocalPlayer))

equipGun

Yields

Equips a gun for the local player.

Lua
Functions:equipGun()

buyGear

Yields

Purchases gear for the local player.

Lua
Functions:buyGear()

buyGun

Yields

Purchases a gun for the local player.

Lua
Functions:buyGun()
🔗

Connections

Event connections and handlers

OnPRCStaffJoin

Event

Fires when a PRC staff member joins the server. Use this to implement safety measures.

Event Data:
  • table - Information about the staff member
Lua
Connections.OnPRCStaffJoin.Event:Connect(function(Info)
    -- Safety measures: game:Shutdown() or kick yourself
    print(Info)
    -- Example: game:Shutdown()
end)
📋

Tabs

Available UI tabs and their purposes

Main

Primary

Main tab containing core features and primary functions.

Players

Social

Player-related functions and interactions.

Trolling

Fun

Trolling and prank features for entertainment.

Visuals

Display

Visual enhancements and display modifications.

VehicleMods

Vehicle

Vehicle modifications and enhancements.

GunMods

Weapon

Gun and weapon modifications.

Aimbot

Combat

Aiming assistance and combat features.

Robberies

Crime

Robbery automation and assistance.

Automation

Auto

Automated tasks and scripted actions.

Teleports

Movement

Teleportation features and location shortcuts.

Settings

Config

Configuration and settings management.

💡

Examples

Complete code examples and usage patterns

Basic Setup and Initialization
Lua
-- Wait for ERX to fully load
repeat task.wait() until _G.Fluent and _G.Functions

-- Get references to main components
local Fluent = _G.Fluent
local Window = _G.Window
local Tabs = _G.Tabs
local Connections = _G.Connections
local Functions = _G.Functions
local Options = Fluent.Options

-- Wait for ERX to be fully ready
repeat task.wait() until _G.RanERX

-- Show notification when loaded
Fluent:Notify({
    Title = "ERLCXploit",
    Content = "CustomFeatures",
    SubContent = "Loaded Custom Features!",
    Duration = 5,
})
Player Status Checking
Lua
-- Check various player states
local player = game.Players.LocalPlayer

-- Check if player is wanted
if Functions:IsPlayerWanted(player) then
    print("Player is wanted by police!")
end

-- Check if player is alive
if Functions:IsLocalPlayerAlive() then
    print("Player is alive")
    
    -- Check if in own vehicle
    if Functions:IsLocalPlayerInOwnVehicle() then
        local car = Functions:GetCurrentLocalPlayerCar()
        print("In own vehicle: " .. (car or "Unknown"))
    end
end

-- Check god mode status
if Functions:IsGodModeEnabled() then
    print("God mode is active")
end
Vehicle Management
Lua
-- Find and interact with vehicles

-- Get closest vehicle
local closestVehicle = Functions:GetClosestVehicle()
if closestVehicle then
    print("Closest vehicle: " .. closestVehicle.Name)
    print("Distance: " .. tostring(
        (closestVehicle.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
    ))
end

-- Get random vehicle
local randomVehicle = Functions:GetRandomVehicle()
if randomVehicle then
    print("Random vehicle found: " .. randomVehicle.Name)
end

-- Check current vehicle
local currentCar = Functions:GetCurrentLocalPlayerCar()
if currentCar then
    print("Currently driving: " .. currentCar)
else
    print("Not in a vehicle")
end
Safety and Staff Detection
Lua
-- Set up staff detection and safety measures

-- Check if a player is PRC staff
local function checkPlayer(player)
    local isPRCMod = Functions:IsPRCMod(player)
    if isPRCMod then
        print("WARNING: PRC Staff detected - " .. player.Name)
        -- Implement safety measures here
        return true
    end
    return false
end

-- Check all current players
for _, player in pairs(game.Players:GetPlayers()) do
    checkPlayer(player)
end

-- Set up staff join detection
Connections.OnPRCStaffJoin.Event:Connect(function(Info)
    print("PRC Staff joined the server!")
    print("Staff info:", Info)
    
    -- Safety options:
    -- Option 1: Shutdown game
    -- game:Shutdown()
    
    -- Option 2: Leave server
    -- game.Players.LocalPlayer:Kick("Staff detected - leaving for safety")
    
    -- Option 3: Disable all features
    -- DisableAllFeatures() ( this is real trust )
end)
Adding Custom UI Elements
Lua
-- Add custom buttons and UI elements to tabs

-- Add teleport button to Main tab
Tabs.Main:AddButton({
    Title = "Teleport to Spawn",
    Description = "Teleports you to the spawn location",
    Callback = function()
        Functions:TeleportTo(CFrame.new(0, 10, 0))
        Fluent:Notify({
            Title = "Teleport",
            Content = "Teleported to spawn!",
            Duration = 3,
        })
    end,
})

-- Add vehicle finder button
Tabs.Main:AddButton({
    Title = "Find Random Vehicle",
    Description = "Teleports you to a random vehicle",
    Callback = function()
        local vehicle = Functions:GetRandomVehicle()
        if vehicle then
            Functions:TeleportTo(vehicle.CFrame + Vector3.new(0, 5, 0))
            Fluent:Notify({
                Title = "Vehicle Found",
                Content = "Teleported to " .. vehicle.Name,
                Duration = 3,
            })
        else
            Fluent:Notify({
                Title = "No Vehicle",
                Content = "No vehicles found!",
                Duration = 3,
            })
        end
    end,
})

-- Add equipment buttons
Tabs.Main:AddButton({
    Title = "Equip Gun",
    Description = "Equips a gun for combat",
    Callback = function()
        Functions:equipGun()
    end,
})

Tabs.Main:AddButton({
    Title = "Buy Gear",
    Description = "Purchases gear items",
    Callback = function()
        Functions:buyGear()
    end,
})