MavisBey4807 Posted September 9 Share Posted September 9 I know how to change model and texture but is there a way to change their type Link to comment
0 Shady1 Posted September 9 Share Posted September 9 1 hour ago, MavisBey4807 said: I know how to change model and texture but is there a way to change their type -- Example: Replacing a vehicle model with a custom one -- This only changes the model and texture, not the element type (it stays a vehicle) function replaceModel() -- Load custom TXD local txd = engineLoadTXD("mycar.txd", true) if txd then engineImportTXD(txd, 411) -- 411 = Infernus end -- Load custom DFF (3D model) local dff = engineLoadDFF("mycar.dff", 411) if dff then engineReplaceModel(dff, 411) end -- Load custom COL (collision file) local col = engineLoadCOL("mycar.col") if col then engineReplaceCOL(col, 411) end outputChatBox("Custom model applied to Infernus!", 0, 255, 0) end addEventHandler("onClientResourceStart", resourceRoot, replaceModel) Link to comment
0 MavisBey4807 Posted September 9 Author Share Posted September 9 oyundaki bastonu Just now, Shady1 said: -- Example: Replacing a vehicle model with a custom one -- This only changes the model and texture, not the element type (it stays a vehicle) function replaceModel() -- Load custom TXD local txd = engineLoadTXD("mycar.txd", true) if txd then engineImportTXD(txd, 411) -- 411 = Infernus end -- Load custom DFF (3D model) local dff = engineLoadDFF("mycar.dff", 411) if dff then engineReplaceModel(dff, 411) end -- Load custom COL (collision file) local col = engineLoadCOL("mycar.col") if col then engineReplaceCOL(col, 411) end outputChatBox("Custom model applied to Infernus!", 0, 255, 0) end addEventHandler("onClientResourceStart", resourceRoot, replaceModel) oyundaki bastonu silaha çevircem diyorum yazmışım yukarı bunu yapmayı biliyorum Link to comment
0 Shady1 Posted September 9 Share Posted September 9 1 minute ago, MavisBey4807 said: oyundaki bastonu oyundaki bastonu silaha çevircem diyorum yazmışım yukarı bunu yapmayı biliyorum hmm Baston bir object ise, onu weapon tipine çevirmek mümkün değil. Eğer baston aslında MTA’da bir weapon model ID (örneğin silah modelleri gibi) olarak tanımlıysa, sadece modelini değiştirip görünüşünü değiştirebilir. Ama bir object ID’yi direkt olarak silaha çeviremez. Link to comment
0 MavisBey4807 Posted September 9 Author Share Posted September 9 baston oyunda bir silah harita objesi değil. bunun modelini değiştirip ateşli bi silaha getirmenin bir yolu var mı diyorum Link to comment
0 Shady1 Posted September 9 Share Posted September 9 yapamazsın oyun mekanizmasına bağlayamazsın ama custom weapon sistemi yaparsan baston silahının idsini kullanıp fireweapon olan Fire Extinguisher 42 silahını kullanabilirsin bunun için ben bir çalışma yapmıştım github'umda mevcut göz atabilirsin https://github.com/F2BShady/CustomWeaponSystem Link to comment
0 βurak Posted September 9 Share Posted September 9 2 minutes ago, MavisBey4807 said: baston oyunda bir silah harita objesi değil. bunun modelini değiştirip ateşli bi silaha getirmenin bir yolu var mı diyorum o dediğin mümkün değil malesef bu silahlar c++ ile oyunun içinde gömülü bir şekilde kodlanmıştır o kodlara erişip değiştirmek gerekir mtanın bu kadar erişimi yok zaten belkide istediğin şey bu değildir? eklemek istediğin silah için normal silahı görünmez yapıp seslerini ve objesini ayarlamaya ne dersin? Link to comment
0 MavisBey4807 Posted September 9 Author Share Posted September 9 Just now, βurak said: o dediğin mümkün değil malesef bu silahlar c++ ile oyunun içinde gömülü bir şekilde kodlanmıştır o kodlara erişip değiştirmek gerekir mtanın bu kadar erişimi yok zaten belkide istediğin şey bu değildir? eklemek istediğin silah için normal silahı görünmez yapıp seslerini ve objesini ayarlamaya ne dersin? eyvallah o kadar uğraşamam olmuyorsa olmuyordur 8 minutes ago, Shady1 said: yapamazsın oyun mekanizmasına bağlayamazsın ama custom weapon sistemi yaparsan baston silahının idsini kullanıp fireweapon olan Fire Extinguisher 42 silahını kullanabilirsin bunun için ben bir çalışma yapmıştım github'umda mevcut göz atabilirsin https://github.com/F2BShady/CustomWeaponSystem bir şey yapmışsın ama anlayamıyorum o kadar kod bilgim yok. oyunda açtıktan sonra silah değiştiremiyorum ve sesler gelmiyor silahtan 1 Link to comment
0 Shady1 Posted September 9 Share Posted September 9 16 minutes ago, MavisBey4807 said: eyvallah o kadar uğraşamam olmuyorsa olmuyordur bir şey yapmışsın ama anlayamıyorum o kadar kod bilgim yok. oyunda açtıktan sonra silah değiştiremiyorum ve sesler gelmiyor silahtan ama bunu istiyorsanız yapmalısınz bence bir developer bulunuz ve bu konu için size yardımcı olsun,benim hazırladığım cws de istediğim silahı istediğim kadar model ekleyebilir ve sesleride değiştirebilirsin aslında bir nevi senin istediğin işlevler burada mevcut, ancak kodu iyi analiz edip okuman gerek kod bilgin yoksa zaten anlayamazsın Link to comment
0 Human Resources Staff Vinyard Posted September 9 Human Resources Staff Share Posted September 9 Given that this topic gained more Turkish-speaking traction, we will move this to its language-specific section. 1 Link to comment
Question
MavisBey4807
I know how to change model and texture but is there a way to change their type
Link to comment
10 answers to this question
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