Vehicle Properties
Instruction and guide on how to setup vehicle properties for T1GER resources
Introduction
With the release of T1GER Tuning System, we needed to introduce our own vehicleprops.lua
with get and set methods to fully ensure vehicle mods being applied and saved correctly.
You can easily add your 3rd-party custom edits from your current vehicle properties into our vehicleprops.lua
.
Setup
This guide will help you setup vehicle properties inside your framework functions.
Functions
The GetVehicleProperties()
and SetVehicleProperties()
functions can be found and altered inside t1ger_lib/vehicleprops.lua
GetVehicleProperties
exports['t1ger_lib']:GetVehicleProperties(vehicle)
-- returns the given vehicle's properties
Parameters:
vehicle: entity(vehicle)
SetVehicleProperties
exports['t1ger_lib']:SetVehicleProperties(vehicle, props)
-- sets the given vehicle's properties
Parameters:
vehicle: entity(vehicle)
props: table(props)
Last updated