Player Controller model not load

Started by JitoJito 1 post 114 views

Reply on sbox.game
  1. #1
    JitoJito 1,010
     

    Hi, I found a bug in the s&box editor. 


    When I create a Player Controller, the player model does not load correctly. Instead of the character model, the editor shows the default ERROR model in the scene. 


    In the Inspector, the Body object has a Model Renderer (Skinned) component, but the model field shows: 

    models/dev/error.vmdl_c
    image.png 1.78 MB
    image.png 362.16 KB

    I also found that the proper Citizen/player models seem to exist here:

    sbox\addons\citizen\assets\models\citizen

    So the models are not completely missing from the project/addon. But for some reason, when the game creates the player through the Player Controller, it assigns or spawns a broken model instead, which becomes models/dev/error.vmdl_c.

    I’m not sure why the Player Controller does not automatically use the correct Citizen model from that folder.