Exports
Exports are functions that can be used in other scripts. They are called to pass data or perform certain actions related to its belonging script.
⚠️
In order to use exports without any issues you should not change the name of the script it belongs to!
GetNitroLevel
local nitroLevel = exports['ts_nitro']:GetNitroLevel(vehicle)
- vehicle:
number
The vehicle you want to get the nitro level from.
example:
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
local nitroLevel = exports['ts_nitro']:GetNitroLevel(vehicle)
print(nitroLevel)