Raised This Month: $12 Target: $400
 3% 

Spawn weapon with custom model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
farawayf
Senior Member
Join Date: Jan 2019
Old 03-08-2019 , 08:15   Spawn weapon with custom model
Reply With Quote #1

Hello. How to spawn weapon with custom model ?
I created .txt file in "scripts/" named "weapon_m249_mod" with custom stats and model folders
Code:
        "viewmodel"                     "models/weapons/v_flamethrower.mdl"
        "playermodel"                   "models/weapons/w_flamethrower.mdl"
files downloaded when connect, but when i take a weapon the skin is invisible and every 1 second changes to the standart m249 skin
PHP Code:
    wmod=CreateEntityByName("weapon_m249");
    
DispatchKeyValue(wmod,"classname","weapon_m249_mod"); 
Need help

Last edited by farawayf; 03-08-2019 at 08:16.
farawayf is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 03-08-2019 , 12:27   Re: Spawn weapon with custom model
Reply With Quote #2

try spawning a prop_ instead
__________________
8guawong is offline
Reply



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 00:57.


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