RekZ Posted April 2, 2022 Share Posted April 2, 2022 I am trying to replace the models of the light wires (Photo ID 13451) that are found on the map to give them a utility and in some of those models I find the problem that the texture is inverted i try to use setElementDoubleSided, engineSetModelVisibleTime, setObjectProperty and others function but nothing work, i really dont known what special property or configuration have these model to invert the texture >:C Link to comment
Administrators Tut Posted April 2, 2022 Administrators Share Posted April 2, 2022 Hi @RekZ It looks like the wires object has an alpha or z-buffer flag defined in its .ide file. I don't have GTA on this PC, but if you head over to GTA directory\data\maps\ and locate 'countrye.ide', CTRL F 'CEwirestown08' and at the end of its line it should have a number. The number represents the object's flag, and objects can have multiple flags combined together. You can use this list (see row: Dec) for reference https://gtamods.com/wiki/Item_Definition#GTA_San_Andreas 1 Link to comment
RekZ Posted April 2, 2022 Author Share Posted April 2, 2022 (edited) Thanks for your respond, for what i can see, the models that give me the problem have this code 2097348 (i will let the info here i dont want to forget it ) MTA have some way to edit the flags for a object ? 2097152 - DISABLE_BACKFACE_CULLING 128 - DONT_RECEIVE_SHADOWS 64 - NO_ZBUFFER_WRITE 4 - DRAW_LAST Edited April 2, 2022 by RekZ Link to comment
Administrators Tut Posted April 2, 2022 Administrators Share Posted April 2, 2022 (edited) Good job figuring that one out. Flag 64 won't work with opaque models (objects that aren't transparent), sadly - you'd have to find a different object There's an open pull request for editing flags in MTA: https://github.com/multitheftauto/mtasa-blue/pull/1714 Edited April 2, 2022 by Tut 1 1 Link to comment
RekZ Posted April 2, 2022 Author Share Posted April 2, 2022 12 minutes ago, Tut said: Good job figuring that one out. Flag 64 won't work with opaque models (objects that aren't transparent), sadly - you'd have to find a different object There's an open pull request for editing flags in MTA: https://github.com/multitheftauto/mtasa-blue/pull/1714 Uuuh that really hurt me i think i will stop my project and wait for that function, i really dont want to change 70 or more IDs Thanks for your time. Link to comment
Administrators Tut Posted April 2, 2022 Administrators Share Posted April 2, 2022 A few things worth considering are replacing casino chip models: https://dev.prineside.com/en/gtasa_samp_model_id/customsearch/?c[]=34&s=id-asc&tg=1&bc=-1&bb=-1&bt=-1&ba=-1 or using Fernando's resource / engineRequestModel 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