Code 3 Matrix Script
Last updated
Last updated
To get started, you'll need to download your new resource previously purchased from our store
. For that, you must login with your account on keymaster
and look for the Asset Grants section, there we will find our script.
Units of measurement: You can choose between using kilometers per hour (KPH) or miles per hour (MPH) by changing the value of useKPH
. Set it to true
if you want to use KPH, or false
for MPH.
Speed threshold: This determines the speed below which the extras will be toggled. Modify the value of speedThreshold
to set the desired speed. In the example, it is set to 1.
Health threshold: To prevent unrealistic repairs when the vehicle is damaged, this part disables the effect of extras. Modify the value of healthThreshold
to set the threshold. In the example, it is set to 850, which means the effect will be disabled if the vehicle's health is between 850 and 999.
Delay between checks: This determines the time interval in seconds between each check. Modify the value of delay
to adjust the delay. It should be no lower than 0.5 seconds. In the example, it is set to 1.5.
Vehicles and extras: This part defines the vehicles and their associated extras. Each vehicle has a spawnName
and two sets of extras: pExtras
for when the vehicle is parked, and dExtras
for when the vehicle is being driven. Modify the values in this section to configure the extras for each vehicle. In the example, three vehicles are listed with their respective extras. (note that you will need to repair the vehicle to display extras such as the spotlight and ram bars on certain models due to the way the script functions)
Compatible models: