Raised This Month: $32 Target: $400
 8% 

How to set custom model on player spawn?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pokas
Junior Member
Join Date: Dec 2020
Old 12-17-2020 , 10:34   How to set custom model on player spawn?
Reply With Quote #1

How to set custom model on player spawn?
i trie SetEntityModel(client, "path"); but its not working
Pokas is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Location: France
Old 12-17-2020 , 11:48   Re: How to set custom model on player spawn?
Reply With Quote #2

Be sure to precache it before using it

zeph store function:

Quote:
if(GAME_TF2)
{
SetVariantString(model);
AcceptEntityInput(client, "SetCustomModel");
}
else
{
SetEntityModel(client, model);
}

SetEntProp(client, Prop_Send, "m_nSkin", skin);

if(GAME_CSGO & arms[0]!=0)
{
SetEntPropString(client, Prop_Send, "m_szArmsModel", arms);
}
SetEntityModel should work, I guess
__________________
GitHub | Discord: @azalty | Steam

Last edited by azalty; 12-17-2020 at 11:50.
azalty is offline
Cruze
Veteran Member
Join Date: May 2017
Old 01-02-2021 , 07:25   Re: How to set custom model on player spawn?
Reply With Quote #3

Try setting model after a frame or timer.

PHP Code:
RequestFrame(Frame_PlayerSpawnclient); 
OR
PHP Code:
CreateTimer(0.1Timer_PlayerSpawnclient); 
__________________
Taking paid private requests! Contact me

Last edited by Cruze; 01-02-2021 at 07:25.
Cruze is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode