Overview Version History Q & A Rating & Review
CFX Run
CFX Run allows GitHub Copilot Chat (GitHub.copilot-chat
) for debugging and interacting with CFX (FiveM / RedM) game clients. It provides Copilot tools to execute JavaScript code in a sandboxed environment, this becomes useful for Copilot to debug and interact with the game client for more integrated development experience.
Requirements
Contributing
Pull requests and issues are welcome!
Join our Discord for support and discussions.
Features
Execute JavaScript code in FiveM client environment
Run code in NUI/CEF contexts for UI debugging
Get and insert player coordinates (with/without heading)
Remote debugging over network
Planned Features
User Input support (KEYBOARD, JOYSTICK, MOUSE, PAD, TOUCHPAD)
Server-side code execution
Limitations
Reference tools in chat messages to use them: @RunJSFiveMCode Get the player position
No server-side code execution
No User Input support (KEYBOARD, JOYSTICK, MOUSE, PAD, TOUCHPAD)
Remote CFX Run
To use CFX Run remotely, you need to expose client DevTools.
Same network
Open the game client.
In CMD, run:
netsh advfirewall firewall add rule name="CEF DevTools Port" dir=in action=allow protocol=TCP localport=13172
In CMD, run:
netsh interface portproxy add v4tov4 listenport=13172 listenaddress=0.0.0.0 connectport=13172 connectaddress=127.0.0.1
If you have already ran the commands: 3. Before running the game, you need to
netsh interface portproxy delete v4tov4 listenport=13172 listenaddress=0.0.0.0
Run the game client.
Repeat step 2.