Module EMVU.AutoLivery

Automatic Liveries

Info:

  • Copyright: Photon Team
  • Release: v74 Hot Sulphur Springs
  • Author: Photon Team

Functions

Photon.AutoLivery.DownloadMaterial(car, id, val, ent, cback, failedcback) Function to download a material.
Photon.AutoLivery.FormatName(car, id, val) Format a livery name for caching.
Photon.AutoLivery.LoadMaterial(car, id, val, ent) Load and fetch a material onto a given vehicle.
Photon.AutoLivery.LoadCallback(car, id, val, ent, success) Callback after a livery has been downloaded.
Photon.AutoLivery.FindFallback(name, id) Broken.
Photon.AutoLivery.ApplyFallback(ent, id) Apply a fallback livery to a vehicle.
Photon.AutoLivery.ApplyTexture(mat, ent, car, val, id) Apply an autolivery to a vehicle.
Photon.AutoLivery.LoadLivery(car, id, val) Load a livery from file.
Photon.AutoLivery.Apply(id, val, ent) Apply an auto livery to a vehicle.
Photon.AutoLivery.Scan() Scan for AutoLivery changes.

Tables

Photon.AutoLivery.TranslationTable Translation table for models to material names for unit generation.


Functions

Methods
Photon.AutoLivery.DownloadMaterial(car, id, val, ent, cback, failedcback)
Function to download a material.

Parameters:

  • car string Vehicle Material key for the generator.
  • id string Livery ID.
  • val string Unit ID.
  • ent Entity Callback entity.
  • cback function Callback function.
  • failedcback function Error callback.
Photon.AutoLivery.FormatName(car, id, val)
Format a livery name for caching.

Parameters:

Returns:

    string Formatted name.
Photon.AutoLivery.LoadMaterial(car, id, val, ent)
Load and fetch a material onto a given vehicle.

Parameters:

  • car string Vehicle ID
  • id string Livery ID.
  • val string Unit ID.
  • ent Entity Callback entity.
Photon.AutoLivery.LoadCallback(car, id, val, ent, success)
Callback after a livery has been downloaded.

Parameters:

  • car string Vehicle ID
  • id string Livery ID.
  • val string Unit ID.
  • ent Entity Callback entity.
  • success boolean If the download was successful.
Photon.AutoLivery.FindFallback(name, id)
Broken.

Parameters:

Photon.AutoLivery.ApplyFallback(ent, id)
Apply a fallback livery to a vehicle.

Parameters:

  • ent Entity Entity to apply to.
  • id string Livery ID.
Photon.AutoLivery.ApplyTexture(mat, ent, car, val, id)
Apply an autolivery to a vehicle.

Parameters:

  • mat IMaterial Material to apply.
  • ent Entity Vehicle to apply to.
  • car string Vehicle ID.
  • val string Livery ID.
  • id string Unit ID.
Photon.AutoLivery.LoadLivery(car, id, val)
Load a livery from file.

Parameters:

Photon.AutoLivery.Apply(id, val, ent)
Apply an auto livery to a vehicle.

Parameters:

  • id string Livery ID.
  • val string Unit ID.
  • ent Entity Vehicle to apply to.
Photon.AutoLivery.Scan()
Scan for AutoLivery changes.

Tables

Photon.AutoLivery.TranslationTable
Translation table for models to material names for unit generation.
generated by LDoc 1.5.0 Last updated 2023-08-22 12:06:54