Lib.createVeh

It is used to create vehicles with specific parameters

Lib.createVeh(...)
  • hash: string

  • coords: vector4

  • isNetwork: boolean

  • options: table or nil

    • addKeys: boolean or nil

    • freeze: boolean or nil

    • dirtLevel: number or nil

    • livery: number or nil

    • primaryColor: table or nil

      • r: number

      • g: number

      • b: number

      • type: normal or metallic or pearl or matte or metal or chrome or nil

        • default: normal

    • secondaryColor: table or nil

      • r: number

      • g: number

      • b: number

      • type: normal or metallic or pearl or matte or metal or chrome or nil

        • default: normal

    • mechanicalMods: table or nil

      • engine: number or nil

      • brakes: number or nil

      • gearbox: number or nil

      • suspension: number or nil

      • armour: number or nil

      • turbo: boolean or nil

Last updated