Script Error in 3407

I have this problem when changing the gamebuild from 3258 to 3407 the spawn script give me this problem
image

Change the game build to 3095 its better

Can you provide the code that cause that error?

cl_char.lua and cl_util.lua
cl_char.lua (11.6 KB)
cl_util.lua (11.3 KB)

Looks related to creature metadata, can you debug what ped model are you spawning?

mp_freemode_01 i guess