This Rust tool helps you create a structured resource directory with predefined templates for a Cfx.re project.
- Prompts for resource name and username
- Creates directories:
client
,server
, anddata
- Reads template files for
fxmanifest.lua
,client.lua
,server.lua
, anddata.lua
- Replaces placeholders in the templates with user input
- Optionally includes
ox_lib
and a web project in thefxmanifest.lua
-
Clone the repository:
git clone https://github.com/ccheerry/cTool.git cd cTool
-
Prepare the templates:
Create the following templates you want, following your needs. Atleast do the fxmanifest one or use the one provided on the repo
fxmanifest.lua
client.lua
server.lua
data.lua
-
Run the program:
cargo run
Or to build an executable:
cargo build --release
-
Follow the prompts:
- Input the desired resource name.
- Input your name (to display on
fxmanifest
). - Answer the prompts about including
ox_lib
and a web project.
Input the desired resource name:
my_resource
Input your name (to display on fxmanifest):
Cherry
Creating files for resource named: my_resource
Import ox_lib? (yes/no)
yes
Include web project? (yes/no)
no
Resource created successfully!
- Framework imports.
- Add manually the desired files.
- Alias guide for quicker usage
- Release direct .exe files