GrimReaper Posted September 22, 2012 Posted September 22, 2012 how to attach cellphone to players hand and what is animation of cellphone answering?
Callum Posted September 22, 2012 Posted September 22, 2012 It would probably involve attachElements and/or getPedBonePosition.
GrimReaper Posted September 22, 2012 Author Posted September 22, 2012 yeah, but i have problem finding the id of cellphone
Castillo Posted September 22, 2012 Posted September 22, 2012 Phone object model: 330 Animation: "ped", "phone_talk"
GrimReaper Posted September 22, 2012 Author Posted September 22, 2012 1. i use this code for repleacing the model, but it crashes: txdPhone = engineLoadTXD("models/cellphone.txd") engineImportTXD(txdPhone,330) dffPhone = engineLoadDFF("models/cellphone.dff",0) engineReplaceModel(dffPhone,330) 2. can u please write me an example of attaching phone to hand
Castillo Posted September 22, 2012 Posted September 22, 2012 1: The model/texture must be invalid. 2: Download "bone_attach" from MTA community and use this: exports [ "bone_attach" ]:attachElementToBone ( phoneObject, attachTo, 12, 0, 0, 0.01, 0, -50, 0 )
GrimReaper Posted September 22, 2012 Author Posted September 22, 2012 this seems not to work exports [ "bone_attach" ]:attachElementToBone ( 330, getLocalPlayer(), 12, 0, 0, 0.01, 0, -50, 0 )
Castillo Posted September 22, 2012 Posted September 22, 2012 Because I said phone object not phone object model.
GrimReaper Posted September 22, 2012 Author Posted September 22, 2012 Because I said phone object not phone object model. sorry, i fixed it now, but i need help with repleacing phone model, (http://files.gtagaming.com/www/files/uploads/0909/GoldiPhoneBeta.zip), it works in original game, but i cant repleace it in mta
Castillo Posted September 22, 2012 Posted September 22, 2012 I've also tried it, it crashed, I downloaded another mod and crashed as well.
GrimReaper Posted September 22, 2012 Author Posted September 22, 2012 is there any id that is similar to this one, but possible to repleace (i cant find the id's list)
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