41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
--@shared
|
|
--@name BMW M4 G82 Competition
|
|
--@author Koptilnya1337
|
|
--@include /libs/meshbuilder.txt
|
|
local MeshBuilder = require("/libs/meshbuilder.txt")
|
|
|
|
DEBUG_MODE = true
|
|
|
|
local LINK = "https://drive.google.com/u/0/uc?id=1yxjPtVhoMROwSB56tfL_dbBPrW1Yjr9h&export=download"
|
|
local SCALE = Vector(1)
|
|
|
|
local Materials =
|
|
{
|
|
Body = "phoenix_storms/fender_white",
|
|
Carbon = "sprops/textures/sprops_cfiber2"
|
|
}
|
|
|
|
local Colors =
|
|
{
|
|
Body = Color(115,218,201),
|
|
Carbon = Color(255,255,255)
|
|
}
|
|
|
|
local builder = {}
|
|
|
|
if SERVER then
|
|
builder = MeshBuilder:new(LINK)
|
|
|
|
local this = chip()
|
|
|
|
-- Body group
|
|
builder:build("Body", Vector(0), Angle(0), SCALE, Colors.Body, Materials.Body, this, this)
|
|
builder:build("LeftDoor", Vector(0), Angle(0), SCALE, Colors.Body, Materials.Body, this, this)
|
|
builder:build("RightDoor", Vector(0), Angle(0), SCALE, Colors.Body, Materials.Body, this, this)
|
|
builder:build("Bonnet", Vector(0), Angle(0), SCALE, Colors.Body, Materials.Body, this, this)
|
|
builder:build("Trunk", Vector(0), Angle(0), SCALE, Colors.Body, Materials.Body, this, this)
|
|
builder:build("Roof", Vector(0), Angle(0), SCALE, Colors.Carbon, Materials.Carbon, this, this)
|
|
|
|
builder:apply()
|
|
end
|