This repository was archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Creation_Vehicles_8
Jack Honour edited this page Oct 14, 2019
·
3 revisions
Step 1
- Great news, your at the last stage before you can see and use your new vehicle !
- Firstly you probably want to work off the blank class that comes with the plugin.
- Download this file into
plugin_data/Vehicles/(FILE LINK) - Rename the file to the name of your vehicle (no spaces) eg
MyCar.php - Because of the loading process the class name must be the exact same as the file name so on L(ine).25 change
BLANKto your file name in my case itsMyCar.
- Now, down on L.42 this string is the name used when listing/registering/spawning the vehicle so essentially what the user will have to type to spawn it (NO SPACES, USE
-to split), in my case its going to be something likeMy-Car.
- Now on L.47 this string is important !
- It must be the exact same name you put inside the
Design_Manifest(NOTE, you can make multiple vehicle class's that use the same design)
- So for me as shown above my design name is
My-Car-Designso that's what i put here:
- So go ahead and save the file, and start the server with PM-MP Debug enabled, you should see this:
If you get errors its because you didnt read Stage 8 carefully (the stage's are correct i ran through them myself.)
Step 2
- THE LAST STEP !
- If you tried to sit or drive in the previous stage you would have noticed that you cant, because the size is 0,0 (not there).
- So we need to adjust all the values:
- Obviously the scale shown in that picture is the default
1and that's a bit small, so lets leave that at2.5on L.38 - The values are hard to be determined and near impossible to be accurate but for width and height i have used
0.7(you will notice the shadow appear and the tag to be on top not in the vehicle) on L.26/27 - Because my vehicle has no room for passengers we will not add a passenger seat so you can remove L.34 (Unless you think you can squish a person behind the driver...)
- So now go ahead and try it in-game.
- Pretty cool right, drive-able at least.
- The last two things i will tell you about is the Y on the driver position is slightly high, so we can lower it to about
-0.3on L.33 you have to change the vector (format: X,Y,Z):
Notice: If your having problems and cant relate clearly i have uploaded the vehicle i made onto the wiki repo here
Step 3
- This stage is only required if you change the model after trying it out in-game.
- Do you remember the number on the end of the geometry name,
geometry.MyCar.1thats there because the client cache's the geometry data so if you changed the geometry and tried to see it in game it will still be using the old geo data/model. - So when editing the model and trying it, CHANGE THE NUMBER on both the geometry file and the
design_manifest.json(I increment the number by one)
Thats all the stages completed, Congratulations !
If you have any suggestions/issues regarding the wiki please open a issue [here] (https://github.com/JaxkDev/VehiclesWiki/issues/new)






