..:D&G:.. Posted May 8, 2013 Posted May 8, 2013 How can I add this: local briefcase = createObject ( 1210, 0, 0, 0 ) exports.bone_attach:attachElementToBone ( briefcase, source, 11, 0, 0, 0, 0, 100, 0 ) function destroy() destroyElement(briefcase) And change this: elseif (itemID==76) then if (briefcase[source]) then destroyElement(briefcase[source]) briefcase[source] = nil else local x, y, z = getElementPosition(source) local rot = getPedRotation(source) x = x + math.sin(math.rad(rot)) * 1.5 y = y + math.cos(math.rad(rot)) * 1.5 local object = createObject(1631, x, y, z) attachElements(object, source, 0, 1, 0) briefcase[source] = object end But I need to change the second code so it works with the first code... MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
..:D&G:.. Posted May 9, 2013 Author Posted May 9, 2013 As always.... No answer -.- MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
50p Posted May 9, 2013 Posted May 9, 2013 You just copy and paste some random code not explaining what you need help with so don't expect people answer if they don't know the question. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
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