Skip to content
Dawi edited this page Jan 24, 2014 · 1 revision

Description

With enew you can pass an element in a class.

Syntax

enew(element, Classname)

Example

VehicleClass = {}
function VehicleClass:boom()
	blowVehicle(self)
end

local vehicle = createVehicle(411, 0, 0, 12)

enew(vehicle, VehicleClass)

vehicle:boom()
Clone this wiki locally