A
This commit is contained in:
@@ -62,7 +62,7 @@ local Colors =
|
||||
ReverseLights = Color(120,120,120),
|
||||
RearLightsGlass = Color(150,40,40),
|
||||
FrontLightsBase = Color(30,30,30),
|
||||
FrontLights = Color(10,10,10),
|
||||
FrontLights = Color(50,50,50),
|
||||
FrontLightsGlass = Color(140,140,140),
|
||||
Floor = Color(50,50,50),
|
||||
Dashboard = Color(50,50,50),
|
||||
@@ -170,19 +170,8 @@ if SERVER then
|
||||
|
||||
local result = builder:getResult()
|
||||
else
|
||||
function init()
|
||||
PERMA.onPermissionsGained = function()
|
||||
builder = MeshBuilder:new(LINK)
|
||||
end
|
||||
|
||||
if hasPermission("http.get") and hasPermission("mesh") and hasPermission("entities.setRenderProperty", chip()) then
|
||||
init()
|
||||
else
|
||||
setupPermissionRequest({"http.get", "mesh", "entities.setRenderProperty"}, "", true)
|
||||
|
||||
hook.add("permissionrequest", "_permissionrequest", function()
|
||||
if permissionRequestSatisfied() then
|
||||
init()
|
||||
end
|
||||
end)
|
||||
end
|
||||
PERMA.build()
|
||||
end
|
||||
|
||||
@@ -52,19 +52,8 @@ if SERVER then
|
||||
|
||||
local result = builder:getResult()
|
||||
else
|
||||
function init()
|
||||
PERMA.onPermissionsGained = function()
|
||||
builder = MeshBuilder:new(LINK)
|
||||
end
|
||||
|
||||
if hasPermission("http.get") and hasPermission("mesh") and hasPermission("entities.setRenderProperty", chip()) then
|
||||
init()
|
||||
else
|
||||
setupPermissionRequest({"http.get", "mesh", "entities.setRenderProperty"}, "", true)
|
||||
|
||||
hook.add("permissionrequest", "_permissionrequest", function()
|
||||
if permissionRequestSatisfied() then
|
||||
init()
|
||||
end
|
||||
end)
|
||||
end
|
||||
PERMA.build()
|
||||
end
|
||||
|
||||
@@ -25,19 +25,8 @@ if SERVER then
|
||||
|
||||
builder:getResult()
|
||||
else
|
||||
function init()
|
||||
PERMA.onPermissionsGained = function()
|
||||
builder = MeshBuilder:new(LINK)
|
||||
end
|
||||
|
||||
if hasPermission("http.get") and hasPermission("mesh") and hasPermission("entities.setRenderProperty", chip()) then
|
||||
init()
|
||||
else
|
||||
setupPermissionRequest({"http.get", "mesh", "entities.setRenderProperty"}, "", true)
|
||||
|
||||
hook.add("permissionrequest", "_permissionrequest", function()
|
||||
if permissionRequestSatisfied() then
|
||||
init()
|
||||
end
|
||||
end)
|
||||
end
|
||||
PERMA.build()
|
||||
end
|
||||
|
||||
@@ -24,19 +24,8 @@ if SERVER then
|
||||
end)
|
||||
end
|
||||
else
|
||||
function init()
|
||||
PERMA.onPermissionsGained = function()
|
||||
builder = MeshBuilder:new(LINK)
|
||||
end
|
||||
|
||||
if hasPermission("http.get") and hasPermission("mesh") and hasPermission("entities.setRenderProperty", chip()) then
|
||||
init()
|
||||
else
|
||||
setupPermissionRequest({"http.get", "mesh", "entities.setRenderProperty"}, "", true)
|
||||
|
||||
hook.add("permissionrequest", "_permissionrequest", function()
|
||||
if permissionRequestSatisfied() then
|
||||
init()
|
||||
end
|
||||
end)
|
||||
end
|
||||
PERMA.build()
|
||||
end
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
-- @include /koptilnya/mesh_loader/builder.txt
|
||||
require("/koptilnya/mesh_loader/builder.txt")
|
||||
|
||||
local LINK = "https://www.dropbox.com/s/x2esgnl33i8if2w/vaz2106.obj?dl=1"
|
||||
local LINK = "https://raw.githubusercontent.com/koptilnya/gmod-data/main/vaz2106.obj"
|
||||
local SCALE = Vector(0.9)
|
||||
local MATERIALS = {
|
||||
Exterior = "phoenix_storms/mrref2",
|
||||
@@ -70,7 +70,6 @@ if SERVER then
|
||||
|
||||
builder:build("Body__Exterior", Vector(0), Angle(0), SCALE, COLORS.Exterior, MATERIALS.Exterior, chip(), chip())
|
||||
|
||||
builder:build("Glass", Vector(0), Angle(0), SCALE, COLORS.Glass, MATERIALS.Glass, chip(), chip())
|
||||
builder:build("Body__WindowsLine__Rubber", Vector(0), Angle(0), SCALE, COLORS.Insulation, MATERIALS.Insulation, chip(), chip())
|
||||
builder:build("Body__TrunkLine__Rubber", Vector(0), Angle(0), SCALE, COLORS.Insulation, MATERIALS.Insulation, chip(), chip())
|
||||
|
||||
@@ -154,21 +153,12 @@ if SERVER then
|
||||
builder:build("RightRearDoor__Interior__DoorInterior", Vector(0), Angle(0), SCALE, COLORS.DoorInterior, MATERIALS.DoorInterior, chip(), chip())
|
||||
builder:build("RightRearDoor__Handle__Chrome", Vector(0), Angle(0), SCALE, COLORS.DoorHandle, MATERIALS.DoorHandle, chip(), chip())
|
||||
|
||||
builder:build("Glass", Vector(0), Angle(0), SCALE, COLORS.Glass, MATERIALS.Glass, chip(), chip())
|
||||
|
||||
builder:getResult()
|
||||
else
|
||||
function init()
|
||||
PERMA.onPermissionsGained = function()
|
||||
builder = MeshBuilder:new(LINK)
|
||||
end
|
||||
|
||||
if hasPermission("http.get") and hasPermission("mesh") and hasPermission("entities.setRenderProperty", chip()) then
|
||||
init()
|
||||
else
|
||||
setupPermissionRequest({"http.get", "mesh", "entities.setRenderProperty"}, "", true)
|
||||
|
||||
hook.add("permissionrequest", "_permissionrequest", function()
|
||||
if permissionRequestSatisfied() then
|
||||
init()
|
||||
end
|
||||
end)
|
||||
end
|
||||
PERMA.build()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user