Exploit API v2



Download


This is built on the exact same idea as API v1, but for use with C++.


API Last modified: August 9, 2018

Doc Last modified: April 9, 2019


Usage Example for C# Projects


Open your C# project and build it. Go to where your file was built and drop your downloaded WeAreDevs_API.cpp.dll file in there.

To call the API, you must import the functions using the code below.



[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool LaunchExploit();

[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool SendLuaCScript(string script);

[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool SendLimitedLuaScript(string script);

[DllImport("WeAreDevs_API.cpp.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern bool SendCommand(string script);


From there, you need to go in a game and call the LaunchExploit() function

You can then start using the other functions


SendLimitedLuaScript("print 'hello world'")


SendLuaCScript("getglobal print\r\npushstring hello world!\r\npcall 1 0 0")


SendCommand("btools me")


You can look at the list of commands you can use with SendCommand() below


Methods

List of methods and valid parameters(Given you used the naming convention above)


Methods
LaunchExploit() Before doing anything, you will need to launch the exploit. This will check if its patched, inject the necessary tools, etc.
SendLimitedLuaScript(string_LuaScript) Takes in a string and executes the string as a Lua script
SendLuaCScript(string_LuaCScript) Takes in a string and executes the string as a Lua C script
SendCommand(string_Command) Takes in a string and executes it's corresponding pre-built command

Pre-built commands

For use with the SendCommand() method. Pass these as the string paramter.


kill me Kills your character
float me Makes your character float
nofloat me If floating, it disables your character's float
print {text} Prints the specified text onto the game's developer console as a local script
warn {text} Prints the specified text onto the game's developer console as a warning and local script
hipheight me {number} Sets your character's hip height to the specified value
vectorteleport {xpos} {ypos} {zpos} Teleports your character to the specified vector 3 position

Pre-built commands - FE Protected
Note: Only you can see the effects of the commands below due to Filtering Enabled
chat {plr} {text} Applies chat bubble above target player's head with the specified text
ff me Adds forcefield above your player
noff me Removes forcefield from your player
blockhead {plr} Removes mesh from target player's head
nolimbs {plr} Removes arms and legs from target player
noarms {plr} Removes arms from target player
nolegs {plr} Removes legs from target player
fire me Adds fire effect to your player
nofire me Removes fire effect from your player
sparkles me Adds sparkle effect to your player
nosparkles me Removes sparkle effect from your player
smoke me Adds smoke to your player
nosmoke me Removes from from your player
print {text} Prints the specified text onto the game's developer console
warn {text} Prints the specified text onto the game's developer console as a warning
btools me Gives your character btools
music {musicid} Players the specified audio id from Roblox assets
skybox {decalid} Sets all skybox images to the specified decal id from Roblox assets

Custom Lua Environment

To get around some of the RLua limits, we added custom methods that we felt were needed to the Lua environment.


Methods
getclipboard() Returns content from the clipboard
OpenWebsite() Expects 1 string parameter which should be a website link. It then opens that link on the device's default browser
mousemoverel() Takes 2 parameters(x,y); position to move the cursor
WrapGlobal() Expects 1 string paramter. Add your own method to the custom Lua environment

Note that the Lua environment implements custom wrapping for: getrawmetatable, loadstring, HttpGet, setreadonly, isreadonly, getrenv, getgenv. This is done to improve execution capability.