Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Release dev/0.4.5-dev

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Dec 01:13
  • Refactored class inheritance.
  • Vehicles, Blips, VoiceChannels, Colshapes and Checkpoints now are binded to resource, and whenever you stop a resource it will delete binded objects automatically.
  • Add capability to hold datas inside userdatas. i.e:
local vehicle = alt.Vehicle(0xB8081009, 0, 0, 72, 0, 0, 0)
vehicle.tableData = {}
vehicle.tableData.testBool = false
vehicle.tableData.testNumber = 100.02478
vehicle.tableData.testString = "Lorem ipsum dolor sit amet"
vehicle.isData = true
vehicle.customVariable = 421.232

print(inspect(vehicle.tableData))
print(vehicle.isData)
print(vehicle.customVariable)

Output:

{
        testBool = false,
        testNumber = 100.02478,
        testString = "Lorem ipsum dolor sit amet"
}
true
421.232