Skip to content

Instantly share code, notes, and snippets.

@Jackzmc
Created March 1, 2023 21:01
Show Gist options
  • Save Jackzmc/75aed532fb13648bee6dfaef0c0d6e4f to your computer and use it in GitHub Desktop.
Save Jackzmc/75aed532fb13648bee6dfaef0c0d6e4f to your computer and use it in GitHub Desktop.
{
// The format version. Script only checks the last piece (the 1.3.1)
"version": "Jackz Custom Vehicle 1.3.1",
"created": 1661726534, // Unix timestamp when the vehicle was created. Optional
"name": "MyVehicle", // A name for the vehicle, used for when importing into the editor. Optional
"author": null, // An author name credited for making vehicle. Optional
"blipIcon": 252, // The blip id to show. See https://docs.fivem.net/docs/game-references/blips/
"spawnLocation": { x = 0, y = 0, z = 0 }, // The spawn location of the vehicle. Optional, null will disable
"allowPlayerSpawning": false // Default is false, allows other players to use 'spawnbuild name' command
// The root vehicle that everything is attached to
"base": {
// Serialized vehiclelib data (from jackz_vehicles)
"savedata": { }
// Visiblity, godmode, and rotation data. Only required field is model and type.
"data": {
"visible": true,
"rotation": {
"y": 0,
"x": 0,
"z": 0
},
"type": "VEHICLE",
"model": 1909141499,
"godmode": true
}
},
// A list of objects that are attached. Optional
"objects": [
{
"id": 2, // An unique number to refer to this object as. Optional, but needed if anything is to be parented to it.
"visible": true, // Optional, defaults to true
"name": "prop_barier_conc_01b", // A nicer name to display for the builder. Optional.
"model": -978556406, // The model hash
"offset": { // The offset (x, y, z) from the base vehicle
"y": 0,
"x": 0,
"z": 0
},
"boneIndex": 0, // The bone index the entity gets attached to of it's parent. 0 = Automatic by gtav itself
"collision": true, // Defaults to 'true', controls if entity is attached with collision enabled
"rotation": { // It's angles
"y": 0,
"x": 0,
"z": 0
},
"parent": null // Optional. Refers to the unique id of an entity, to be parented to it.
// null to be parented to the build's base. -1 for world
"customAnimation": { // Optional. Stores a specific jackz_animator recording
"points": [...], // An array of array of data points [posX,posY,posZ,angX,angY,angZ,wpnModel]
"interval": 750, // The interval the positions were recorded, in ms
}
}
],
// Optional. A list of peds, data is identical to objects except for the following additional properties:
"peds": [
{
"godmode": true // Optional, defaults to true
"animdata": [ "dictionary", "animation" ], // Optional. Will play the following animation
...
}
],
// Optional. A list of vehicles, data is identical to objects except for the following additional properties:
"vehicles": [
{
"godmode": true // Optional, defaults to true
"savedata": { }, // Same as base, jackzvehiclelib vehicle serialization. Optional.
...
}
]
// Optional. A list of builds, includes the entire build nested inside. Supports parents as well
"builds": [
{
"build": { } // This entire build's structure embeded inside
}
],
"particles": [
{
"particle": ["dictionary", "name"], // Required, the dictionary and name of the particle
"color": { r = 255, g = 255, b = 255, a = 255 } // Color (with alpha). Optional
"scale": 1.0 // The scale of the particle. Optional I think
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment