[Release] SnailyCAD | Fast, modern and free FiveM CAD/MDT

So now how would I actually allow ppl to connect to said cad now? (sry i’m new to the whole MYSQL stuff)

Also small thing but when registering a company i get an error in my console that says something to do with the whitelist colum of my DB

Thanks! Follow these steps:

  1. go into ./client/src/config you’ll find a file called config.js
  2. Change the http://localhost:3001 to http://your-router-ip:3001
  3. Run npm run build in ./client
  4. Go into package.json
  5. Change the proxy from http://localhost:3001 to http://your-router-ip:3001/
  6. Run cd ../ to go back to the root folder
  7. Run npm start to start the CAD.

then the CAD should be available on http://your-router-ip/ (Not with any port)

So I changed the URL to my IP but it is running on the port 3006 even though everywhere where you can change the port it is the default 3001.

Side note: would I have to port forward the port I want to use?

v2 is released! Check back at the top for more. Thanks a lot to everyone for the support and help!

aye my guy pumping out v2 gg brother good shit

only issue i see with this is that the old company whitelist that myself and you set up isnt in there which is fine i can easily transfer it over would just be nice to have it in v2 :slight_smile:

Thanks a lot!

So i get this

image

any idea

yeah, make sure you have yarn installed.

Yarn: https://classic.yarnpkg.com/en/docs/install/#windows-stable

I could implement a feature that whitelists the creating a company, so only admins can create a company (I’ll have it where the CAD owner can select if this needs to be whitelisted or not)

Hello, is there any reason as to why when I install and launch it on my local windows machine it works fine but if I attempt to use it on my Ubuntu VPS it does not work, as in when I go to create an account it just loads forever

Hey!

Make sure to have all the correct proxy set in client/package.json, this should be the IP-address or domain name to your server

E.G.
"proxy": "http://10.10.10.10:3001",

And in client/src/config/config.js

E.G.
export const backendURL = "http://10.10.10.10:3001"

If you edit anything in the client folder, make sure to run npm run build.

New Update pushed today!

You can now keep track of trucking logs for your account
if you like trucking in FiveM you can use this!

View Full changelog

Yeah, It seems like the 911 call in game integration doesn’t work, I type the command and nothing happens in the cad.

Hey, I replied to your comment on github.

Thanks casper!

Also, Would it be possible to be given the location of the file to edit to change the colors of the Register and sign in button?

Yeah sure!

./client/src/components/Auth

there you’ll find the Register.jsx and Login.jsx

You can look at this documentation for changing the colors: https://material-ui.com/components/buttons/

Sweet, thank you so much :slight_smile:

Did i do something wrong?