Avagard Posted April 23, 2017 Share Posted April 23, 2017 HI!!!! i just want to ask if this is possible, if it is please tell me how if 2 guys had the same gun for example a sniper, is it possible for them to have different models? and also they can see each other models sorry for bad english Link to comment
keymetaphore Posted April 23, 2017 Share Posted April 23, 2017 No, it's not possible. Link to comment
Avagard Posted April 23, 2017 Author Share Posted April 23, 2017 6 minutes ago, Gourmet. said: No, it's not possible. ;/ i saw a server has script like this Link to comment
keymetaphore Posted April 23, 2017 Share Posted April 23, 2017 Maybe you meant textures? That doesn't change the shape, only how it looks. @Avagard Link to comment
Avagard Posted April 23, 2017 Author Share Posted April 23, 2017 i want people to have different weapon models when they carry them Link to comment
HeySlickThatsMe Posted April 23, 2017 Share Posted April 23, 2017 They propably have a custom weapon system 2 Examples: 1 - Replacing an object with a weapon , making normal weapon invisible , attaching replaced object to the hand 2 - Replacing an weapon with element data , for example if you have element data Rifle:416 then you have 416 as m4 , when you have Rifle:417 then you have 417 as m4 Link to comment
keymetaphore Posted April 23, 2017 Share Posted April 23, 2017 I'm pretty sure it's not possible, you can only change the texture. I might be wrong as I'm new to scripting, but I think it's a limitation. Link to comment
Fist Posted April 23, 2017 Share Posted April 23, 2017 1 hour ago, Gourmet. said: I'm pretty sure it's not possible, you can only change the texture. I might be wrong as I'm new to scripting, but I think it's a limitation. It's impossible to do that with default weapon models. But as @ThatsMe said above, you can make default weapon invisible and then attach your custom weapon model to hands. But there is 1 limitation that sucks with doing it, if you gonna aim then model rotation will delay if you move your cursor. 1 Link to comment
#BrosS Posted April 23, 2017 Share Posted April 23, 2017 2 hours ago, Gourmet. said: I'm pretty sure it's not possible, you can only change the texture. I might be wrong as I'm new to scripting, but I think it's a limitation. Have you ever heard of shaders before ? Link to comment
SheriFF Posted April 24, 2017 Share Posted April 24, 2017 As i heard before( not sure tho ), a weapon doesn't represent a physical object like a ped or an object and a shader can't be applied to it. The solution here( if possible ) is to create a custom weapon system which uses actual objects as weapons ( engineApplyShaderToWorldTexture's optional arguments ) Quote Optional Arguments targetElement: The element to restrict applying the shader to. If this is not set the shader will be applied to everything using the texture name. Valid element types for targetElement are vehicles, objects and peds. Link to comment
Avagard Posted April 24, 2017 Author Share Posted April 24, 2017 22 hours ago, ThatsMe said: 2 - Replacing an weapon with element data , for example if you have element data Rifle:416 then you have 416 as m4 , when you have Rifle:417 then you have 417 as m4 okay how can i do that? 10 hours ago, *BeaT* said: As i heard before( not sure tho ), a weapon doesn't represent a physical object like a ped or an object and a shader can't be applied to it. The solution here( if possible ) is to create a custom weapon system which uses actual objects as weapons ( engineApplyShaderToWorldTexture's optional arguments ) but the problem is when they reload. Link to comment
HeySlickThatsMe Posted April 24, 2017 Share Posted April 24, 2017 I would like to know too lmao Im not that much into scripting , sorry Link to comment
Avagard Posted April 24, 2017 Author Share Posted April 24, 2017 nvm.. i found a way to do it :)! thanks for the help Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now