Bence2004 Posted December 28, 2019 Posted December 28, 2019 How I use dxCreateShader on weapon? What should be elementTypes? dxCreateShader ( string filepath / string raw_data [, float priority = 0, float maxDistance = 0, bool layered = false, string elementTypes = "world,vehicle,object,other" ] )
Addlibs Posted December 28, 2019 Posted December 28, 2019 (edited) For weapons held in a ped/player's hand, you use "ped" because a weapon held by a ped is part of the ped in GTASA. You'll need to apply the shader to the world texture named exactly like the weapon object's texture, and have the ped/player as the target element. Edited December 28, 2019 by MrTasty
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