Functions
Core API functions available in ERX V1.
local Functions = _G.Functions :P
IsLocalPlayerInOwnVehicle
BooleanChecks if the local player is currently in their own vehicle.
- boolean - true if in own vehicle, false otherwise
local inOwnVehicle = Functions:IsLocalPlayerInOwnVehicle() if inOwnVehicle then print("Player is in their own vehicle") end
GetCurrentLocalPlayerCar
ObjectReturns the current vehicle model of the local player.
- string - Vehicle model name or nil if not in vehicle
local currentCar = Functions:GetCurrentLocalPlayerCar() if currentCar then print("Current vehicle: " .. currentCar) end
IsLocalPlayerAlive
BooleanChecks if the local player is currently alive.
- boolean - true if alive, false if dead
if Functions:IsLocalPlayerAlive() then print("Player is alive") else print("Player is dead") end
GetClosestVehicle
ObjectReturns the closest vehicle to the local player.
- Instance - Closest vehicle or nil if none found
local closestVehicle = Functions:GetClosestVehicle() if closestVehicle then print("Found closest vehicle: " .. closestVehicle.Name) end
GetRandomVehicle
ObjectReturns a random vehicle from the game world.
- Instance - Random vehicle or nil if none available
if Functions:GetRandomVehicle() then print("Found a random vehicle") end
IsGodModeEnabled
BooleanChecks if god mode is currently enabled for the local player.
- boolean - true if god mode is enabled
if Functions:IsGodModeEnabled() then print("God mode is active") end
IsPlayerWanted
BooleanChecks if the specified player has a wanted level.
- Player - The player to check
- boolean - true if player is wanted
print(Functions:IsPlayerWanted(game.Players.LocalPlayer))
ToolIsAnGun
BooleanChecks if the specified tool is a gun.
- Tool - The tool instance to check
- boolean - true if tool is a gun
print(Functions:ToolIsAnGun(Instance.new("Tool")))
TeleportTo
YieldsTeleports the local player to the specified position or CFrame.
- CFrame | Vector3 - Target position or CFrame
-- Using CFrame Functions:TeleportTo(CFrame.new(-749, 85, 713)) -- Using Vector3 Functions:TeleportTo(Vector3.new(-749, 85, 713))
IsPRCMod
ObjectChecks if the specified player is a PRC moderator.
- Player - The player to check
- Instance | nil - Instance if PRC mod, nil otherwise
print(Functions:IsPRCMod(game.Players.LocalPlayer))
equipGun
YieldsEquips a gun for the local player.
Functions:equipGun()
buyGear
YieldsPurchases gear for the local player.
Functions:buyGear()
buyGun
YieldsPurchases a gun for the local player.
Functions:buyGun()
Connections
Event connections and handlers
OnPRCStaffJoin
EventFires when a PRC staff member joins the server. Use this to implement safety measures.
- table - Information about the staff member
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
PrimaryMain tab containing core features and primary functions.
Players
SocialPlayer-related functions and interactions.
Trolling
FunTrolling and prank features for entertainment.
Visuals
DisplayVisual enhancements and display modifications.
VehicleMods
VehicleVehicle modifications and enhancements.
GunMods
WeaponGun and weapon modifications.
Aimbot
CombatAiming assistance and combat features.
Robberies
CrimeRobbery automation and assistance.
Automation
AutoAutomated tasks and scripted actions.
Teleports
MovementTeleportation features and location shortcuts.
Settings
ConfigConfiguration and settings management.
Examples
Complete code examples and usage patterns
-- 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, })
-- 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
-- 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
-- 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)
-- 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, })