model_context_t
Info
model context can only be retrieved via the DRAW_MODEL callback in all examples below ctx is the player esp context
local function on_draw_model(ctx)
if ctx.entity == nil then
return
end
-- prevent all models from drawing
ctx.override_original = true
end
callbacks.add(e_callbacks.DRAW_MODEL, on_draw_model)
Fields#
| Field | Description |
|---|---|
entityentity_t |
entity that is being rendered right now, can be nil |
model_namestring |
model name |
override_originalbool |
prevents the original model code from running |
Functions#
draw_material#
draws the model with the specified material
draw_original#
draws the model with the original material