jackz revised this gist 1 year ago. Go to revision
No changes
Jackz revised this gist 3 years ago. Go to revision
1 file changed, 0 insertions, 0 deletions
jackz_vehicle_builder_spec.json renamed to jackz_vehicle_builder_spec.json5
File renamed without changes
Jackz revised this gist 3 years ago. Go to revision
1 file changed, 87 insertions
jackz_vehicle_builder_spec.json(file created)
| @@ -0,0 +1,87 @@ | |||
| 1 | + | { | |
| 2 | + | // The format version. Script only checks the last piece (the 1.3.1) | |
| 3 | + | "version": "Jackz Custom Vehicle 1.3.1", | |
| 4 | + | "created": 1661726534, // Unix timestamp when the vehicle was created. Optional | |
| 5 | + | "name": "MyVehicle", // A name for the vehicle, used for when importing into the editor. Optional | |
| 6 | + | "author": null, // An author name credited for making vehicle. Optional | |
| 7 | + | "blipIcon": 252, // The blip id to show. See https://docs.fivem.net/docs/game-references/blips/ | |
| 8 | + | "spawnLocation": { x = 0, y = 0, z = 0 }, // The spawn location of the vehicle. Optional, null will disable | |
| 9 | + | "allowPlayerSpawning": false // Default is false, allows other players to use 'spawnbuild name' command | |
| 10 | + | ||
| 11 | + | // The root vehicle that everything is attached to | |
| 12 | + | "base": { | |
| 13 | + | // Serialized vehiclelib data (from jackz_vehicles) | |
| 14 | + | "savedata": { } | |
| 15 | + | // Visiblity, godmode, and rotation data. Only required field is model and type. | |
| 16 | + | "data": { | |
| 17 | + | "visible": true, | |
| 18 | + | "rotation": { | |
| 19 | + | "y": 0, | |
| 20 | + | "x": 0, | |
| 21 | + | "z": 0 | |
| 22 | + | }, | |
| 23 | + | "type": "VEHICLE", | |
| 24 | + | "model": 1909141499, | |
| 25 | + | "godmode": true | |
| 26 | + | } | |
| 27 | + | }, | |
| 28 | + | ||
| 29 | + | // A list of objects that are attached. Optional | |
| 30 | + | "objects": [ | |
| 31 | + | { | |
| 32 | + | "id": 2, // An unique number to refer to this object as. Optional, but needed if anything is to be parented to it. | |
| 33 | + | "visible": true, // Optional, defaults to true | |
| 34 | + | "name": "prop_barier_conc_01b", // A nicer name to display for the builder. Optional. | |
| 35 | + | "model": -978556406, // The model hash | |
| 36 | + | "offset": { // The offset (x, y, z) from the base vehicle | |
| 37 | + | "y": 0, | |
| 38 | + | "x": 0, | |
| 39 | + | "z": 0 | |
| 40 | + | }, | |
| 41 | + | "boneIndex": 0, // The bone index the entity gets attached to of it's parent. 0 = Automatic by gtav itself | |
| 42 | + | "collision": true, // Defaults to 'true', controls if entity is attached with collision enabled | |
| 43 | + | "rotation": { // It's angles | |
| 44 | + | "y": 0, | |
| 45 | + | "x": 0, | |
| 46 | + | "z": 0 | |
| 47 | + | }, | |
| 48 | + | "parent": null // Optional. Refers to the unique id of an entity, to be parented to it. | |
| 49 | + | // null to be parented to the build's base. -1 for world | |
| 50 | + | "customAnimation": { // Optional. Stores a specific jackz_animator recording | |
| 51 | + | "points": [...], // An array of array of data points [posX,posY,posZ,angX,angY,angZ,wpnModel] | |
| 52 | + | "interval": 750, // The interval the positions were recorded, in ms | |
| 53 | + | } | |
| 54 | + | } | |
| 55 | + | ], | |
| 56 | + | ||
| 57 | + | // Optional. A list of peds, data is identical to objects except for the following additional properties: | |
| 58 | + | "peds": [ | |
| 59 | + | { | |
| 60 | + | "godmode": true // Optional, defaults to true | |
| 61 | + | "animdata": [ "dictionary", "animation" ], // Optional. Will play the following animation | |
| 62 | + | ... | |
| 63 | + | } | |
| 64 | + | ], | |
| 65 | + | ||
| 66 | + | // Optional. A list of vehicles, data is identical to objects except for the following additional properties: | |
| 67 | + | "vehicles": [ | |
| 68 | + | { | |
| 69 | + | "godmode": true // Optional, defaults to true | |
| 70 | + | "savedata": { }, // Same as base, jackzvehiclelib vehicle serialization. Optional. | |
| 71 | + | ... | |
| 72 | + | } | |
| 73 | + | ] | |
| 74 | + | ||
| 75 | + | // Optional. A list of builds, includes the entire build nested inside. Supports parents as well | |
| 76 | + | "builds": [ | |
| 77 | + | { | |
| 78 | + | "build": { } // This entire build's structure embeded inside | |
| 79 | + | } | |
| 80 | + | ], | |
| 81 | + | ||
| 82 | + | "particles": [ | |
| 83 | + | { | |
| 84 | + | "particle": ["dictionary", "name"], // Required, the dictionary and name of the particle | |
| 85 | + | "color": { r = 255, g = 255, b = 255, a = 255 } // Color (with alpha). Optional | |
| 86 | + | "scale": 1.0 // The scale of the particle. Optional I think | |
| 87 | + | ] | |