ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. engineValidatePedModel

Function

engineValidatePedModel

ClientGame engineTrilogy Hub only

Checks whether a model from a file (a ped .dff) works as a skin: bone weights, hierarchy and required bones. Returns the result and a report with errors and warnings, or false when the model has no skeleton (it will be static).

Syntax

bool, table engineValidatePedModel(mesh mesh)

Arguments

meshmesh
The model.

Returns

The result and a { ok, bones, usedBones, errors, warnings } report.

Example

local ok, report = engineValidatePedModel(engineLoadMesh("skiny/bohater.dff"))
if report then
    for _, e in ipairs(report.errors) do outputChatBox("Błąd: " .. e) end
end

See also