function ApplyCharacterCustomization(ped, data) if not ped or not DoesEntityExist(ped) then return end for _, component in ipairs(data.components or {}) do if component.drawable and component.component_id and component.texture then SetPedComponentVariation(ped, component.component_id, component.drawable, component.texture, 0) end end for _, prop in ipairs(data.props or {}) do if prop.drawable ~= -1 then SetPedPropIndex(ped, prop.prop_id, prop.drawable, prop.texture, true) else ClearPedProp(ped, prop.prop_id) end end end