Code: ampel.lua
function data()
local unitMat = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }
return {
type = "DEFAULT",
buildMode = "MULTI",
category = "misc",
availability = {
yearFrom = 1800
},
description = {
name = _("AMPEL"),
description = _("Eine Ampel!")
},
models = {
{ id = "asset/ampel.mdl", transf = unitMat },
},
order = 104, --????
skipCollision = true
}
end
Alles anzeigen
und das unter res/assets/ampel.lua speichern