Jump to content

3 Screenshots

About This File

HI all, here is a simple CarShop system, pretty optimized in client side, but not this much server-side.

 

This CarShop adapt himself to what you give it, from the config file, let me explain:

You define some parameters in the config file, for your carShop (Vehicles classses, marker position...), and the client side system with do the stuff.

Here is a example of a carShop:

"Boat": {    // Shop Name    
	"Position": { // vehicle position for the showcase, camera is auto defined from this
          "x": -729,
          "y": -1361,
          "z": 0.05,
          "rz": 136
        },
        "Marker": { // Marker for the player when entering shop
          "x": -815.93,
          "y": -1346.3,
          "z": 5.15
        },
        "Park": { // When you buy your vehicle, here is where you put vehicle location, it is random ! :D ANd a waypoint is created in client side to show where it is
          "0":{"x":-725.33,"y":-1325.299,"z":0.11,"rz":228.29},
          "1":{"x":-727.42,"y":-1329.044,"z":0.11,"rz":230.54},
          "2":{"x":-729.79,"y":-1333.469,"z":0.11,"rz":230.29},
          "3":{"x":-731.4,"y":-1332.34,"z":0.11,"rz":228.29},
          "4":{"x":-734.63,"y":-1334.34,"z":0.11,"rz":228.29},
          "5":{"x":-738.73,"y":-1342.34,"z":0.11,"rz":228.29}
        },
        "Blip": 427, // Blip for the map
        "Class": [ 14 ], // vehicle classes, see below for list
        "Name": "Boat Shop" // Displayed Name
      }

So, aswell, when connect this will create a Marker / Blip on the marker position of the config file.

And that's all for creating a car shop !

Now, you can define prices easily aswell:

In the vehicle_Shop.json file, you have the list of every vehicle which are available for selling. You have the hash, displayName, name, manufacturer & the price, define dby 15000 by default, but you can define a new price for every vehicle by yourself.

That's all you have to do, now do /carShop [YouCarShopName], and see the magic happening.

 

Here is the vehicles class name:

  1. Sedans
  2. SUVs
  3. Coupe
  4. Muscle
  5. Sport Classic
  6. Sport
  7. Super
  8. Moto
  9. Off-Road
  10. Industrial
  11. Utility
  12. Vans
  13. Cycles
  14. Boats
  15. Helicopters
  16. Planes
  17. Service
  18. Emergency
  19. Military
  20. Commercial
  21. Trains

I think i gave you all the stuff to make it works, i hope you like it!

By default you have 3 carshops, boat / low budget car/ helicopters.


What's New in Version 1.0   See changelog

Released

Add blip & Marker

  • Like 4

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

hubba

   3 of 8 members found this review helpful 3 / 8 members

wow,  that`s cool)

  • Like 1
×
×
  • Create New...