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:
- 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:
- Photon.AutoLivery.LoadCallback(car, id, val, ent, success)
-
Callback after a livery has been downloaded.
Parameters:
- 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:
- 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:
- Photon.AutoLivery.Scan()
- Scan for AutoLivery changes.