PHP Code:
const OFFSET_MODELINDEX = 491
new mdl_index
PHP Code:
mdl_index = engfunc(EngFunc_PrecacheModel, yourplayermodel)
then
PHP Code:
engfunc(EngFunc_SetClientKeyValue, id, engfunc(EngFunc_GetInfoKeyBuffer, id), "model", "yourmodel")
set_pdata_int(id, OFFSET_MODELINDEX, mdl_index, OFFSET_LINUX)
is enough