ZeroFunk Posted May 2, 2015 Share Posted May 2, 2015 Can you help me I want to know how to create a custom weapons. In GTA San andreas there is 2 assault Rifles M4 and AK-47 I want to create few more, Example: MK48,AKS,AKM,M4A1 CCO SD. Plz help Link to comment
3B00DG4MER Posted May 2, 2015 Share Posted May 2, 2015 You've to wait until ealier versions Or Replace the current one .. Link to comment
ZeroFunk Posted May 2, 2015 Author Share Posted May 2, 2015 Replace corrent one whit what? Link to comment
Walid Posted May 2, 2015 Share Posted May 2, 2015 Replace corrent one whit what? Replacig M4 and AK47 with other models (dff files) -- TXD engineLoadTXD() engineImportTXD() -- DFF engineLoadDFF() engineReplaceModel() Link to comment
ZeroFunk Posted May 2, 2015 Author Share Posted May 2, 2015 But i some servers i saw more weapons then i original san andreas i saw mk48 akm,aks,ksvk,as50 and others Link to comment
ZeroFunk Posted May 2, 2015 Author Share Posted May 2, 2015 I can give ip to that server Link to comment
ZeroFunk Posted May 2, 2015 Author Share Posted May 2, 2015 Can i replace toilet whit a weapon? Link to comment
ZeroFunk Posted May 2, 2015 Author Share Posted May 2, 2015 But the server is russian just go in greenzones shop and there will be weapons mtasa://46.174.50.42:22045 Link to comment
Mr.unpredictable. Posted May 2, 2015 Share Posted May 2, 2015 Can i replace toilet whit a weapon? yes you can but that will need a lot of work on coding. Link to comment
Walid Posted May 2, 2015 Share Posted May 2, 2015 But the server is russian just go in greenzones shop and there will be weapons mtasa://46.174.50.42:22045 690MB. Link to comment
ALw7sH Posted May 2, 2015 Share Posted May 2, 2015 There's no function to do that, but it's still not impossible to be honest i dont really know exactly how because haven't tried to think about that before and idont think anyone gonna tell you how if he know so start to think how to make in your way (sorry if this is useless reply) Link to comment
ZeroFunk Posted May 3, 2015 Author Share Posted May 3, 2015 1. I need to make toilet holdable 2. I need to make toilet aimable 3. I need to make toilet shotable 4. I need to change toilets textures I thaught about this Link to comment
Mr.unpredictable. Posted May 3, 2015 Share Posted May 3, 2015 It is possible, just pm me and i will tell you how to do that. Note: I won't create the script for you, You will have to do it on your own. Link to comment
ZeroFunk Posted May 3, 2015 Author Share Posted May 3, 2015 I cant send you pm it shows you dont exist Link to comment
TioTiago Posted May 3, 2015 Share Posted May 3, 2015 (edited) create a attachElementToBone when equip the m4, leaves the invisible m4 not bugar with the skin you created a attachElementToBone also use onPlayerWeaponSwitch for hand gun use detachElementFromBone disappear for it whatever sorry my english elementWeaponReplace = {} function weaponReplace ( ) weapon = getPedWeapon( getLocalPlayer()) local x,y,z = getElementPosition(source) if weapon == 31 then elementWeaponReplace[source] = createObject(1943,x,y,z) setObjectScale(elementWeaponReplace[source],0.875) end exports.bone_attach:attachElementToBone(elementWeaponReplace[source],source,12,0,0,0,180,90,180) addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), weaponReplace ) i don't know Download Bone_Attach: https://forum.multitheftauto.com/viewtopic.php?f=91&t=44088 Edited May 3, 2015 by Guest Link to comment
Walid Posted May 3, 2015 Share Posted May 3, 2015 (edited) create a attachElementToBone when equip the m4, leaves the invisible m4 not bugar with the skin you created a attachElementToBone also use onPlayerWeaponSwitch for hand gun use detachElementFromBone disappear for it whateversorry my english elementWeaponReplace = {} function weaponReplace ( ) weapon = getPedWeapon( getLocalPlayer()) if weapon == 31 then elementWeaponReplace[source] = createObject(1943,x,y,z) setObjectScale(elementWeaponReplace[source],0.875) end attachElementToBone(elementWeaponReplace[source],source,12,0,0,0,180,90,180) addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), weaponReplace ) i don't know Download Bone_Attach: https://forum.multitheftauto.com/viewtopic.php?f=91&t=44088 ??? x, y, z it's not defined in your code. Wrong Edited May 3, 2015 by Guest Link to comment
Mr.unpredictable. Posted May 3, 2015 Share Posted May 3, 2015 create a attachElementToBone when equip the m4, leaves the invisible m4 not bugar with the skin you created a attachElementToBone also use onPlayerWeaponSwitch for hand gun use detachElementFromBone disappear for it whateversorry my english elementWeaponReplace = {} function weaponReplace ( ) weapon = getPedWeapon( getLocalPlayer()) if weapon == 31 then elementWeaponReplace[source] = createObject(1943,x,y,z) setObjectScale(elementWeaponReplace[source],0.875) end attachElementToBone(elementWeaponReplace[source],source,12,0,0,0,180,90,180) addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), weaponReplace ) i don't know Download Bone_Attach: https://forum.multitheftauto.com/viewtopic.php?f=91&t=44088 my idea was some what similar to this, but your code doesn't make any sense, If you are using that resource then you will have to use exports. also onplayerweaponswitch is server side it will effect every one. 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