Adding vehicles to an FXServer through a VPS

Hi,

I am fairly new to all of this and have recently been looking to add vehicles to my server however I have not yet reached a successful solution to this. I have been looking up all the tutorials under the sun regarding this, however all seem to not work or maybe do yet I am being to stupid to realise what I am doing wrong. Essentially I am trying to add british police vehicles and ems vehicles however the models never show up in game or they dont let the server load full stop. I was wondering if somebody had a good guide regarding adding vehicles through a VPS.

Cheers

What’s your folder structure look like?

@xlxAciDxlx https://gyazo.com/8a7f4f1751708c76218737bb1454caa8

I see no vehicle folders?

Hi,

That is because I could not get any to work therefore I removed them. I can add a vehicle now to show you what I am doing. One moment please.

The folder structure should be: /resources/foldername/stream/vehiclename, where foldername can be whatever you want (vehicles, vehs, etc), and vehiclename is the name of the vehicle you’re trying to replace.

https://gyazo.com/b06e0ed0c6ec906e3fd838a8f115f68d
https://gyazo.com/ceebdeb8220677dedebd0d916b9e4add
https://gyazo.com/9060a92b7b5cdad763ba264b67146f01

  • The file declaring the resource should be resource.lua, not resources.lua
  • streams folder should be stream.
  • All the police2 files need to go in a police2 folder inside of stream.

https://gyazo.com/dfc53bc3a0690b87acd97312a3d8df5e
https://gyazo.com/5c29f5291c36e500f05de696981802d5
https://gyazo.com/61b89e6b24785c9fdb2dd485dff998fb
https://gyazo.com/03b8c007d3d6c1b7134dbd36558d0506

@xlxAciDxlx

You have no resource named metbmw2015 in your resources folder. The name of the resource you’re trying to load has to match the folder name after resources/. I.e resources/vehicles/ you would add start vehicles to your server.cfg

@xlxAciDxlx
I do https://gyazo.com/4e21d6ceb159f109194c5063ccbbc579

What’s inside metbmw2015?

Wait… Are any of your resources working? The resources folder should be inside your server directory.

/server
/server/resources/

Yes I have working resources.

Inside the metbmw2015 folder there is this
https://gyazo.com/d8d365bdb51df45188000f0726d84e68

Try removing the start line for the bmw and see if what you have works. If something else errors then there’s something very wrong that I’m obviously missing.

The server boots up fine without the startline for the bmw in it however the vehicles do not change. This has been the case with all vehicles so far.

make sure to turn the server OFF delete the cache folder and restart it after adding the car with a fresh cache the cache is located in the server main folder idk why yours shows in your resources ? should work then or the files are not set up properly

I don’t know why it’s there either, but I thought it was some other resource for caching something so I didn’t question it.