Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Aug 1, 2024
1 parent b7f8f3b commit 4cb80c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions newmodels_reborn/scripts/optional/debug/c_debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ local function getElementCustomModelString(element)
local customModel = tonumber(getElementData(element, getCustomModelDataKey(element)))
if customModel and customModels[customModel] then
local name, baseModel = customModels[customModel].name, customModels[customModel].baseModel
return ("%d \"%s\" (%d)"):format(customModel, name, baseModel)
return {("%d \"%s\" (%d)"):format(customModel, name, baseModel), 0xffffa263}
else
return ("%d"):format(getElementModel(element))
return {("%d"):format(getElementModel(element))}
end
end

Expand Down Expand Up @@ -89,7 +89,7 @@ local function drawDebug()
local x, y, z = getElementPosition(element)
local sx, sy = getScreenFromWorldPosition(x, y, z + 0.5)
if sx and sy then
dxDrawText(customModelStr, sx, sy, 0, 0, 0xFFFFFFFF, 1, "default")
dxDrawText(customModelStr[1], sx, sy, 0, 0, customModelStr[2] or 0xFFFFFFFF, 1, "default")
end
end
end
Expand Down
Binary file removed ss1.jpg
Binary file not shown.
Binary file added ss1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4cb80c2

Please sign in to comment.