Jump to content

[HELP] MTA dayz backpack


Actimel

Recommended Posts

We can't guess what's the backpack position or id , you must find that line which create that object and change the object rotation .

Thats the line of backpack object

elementBackpack[source] = createObject(363, x, y, z ,)

elseif newValue == 8 then

Link to comment
Are you sure you copied full line ?

createObject(363, x, y, z ,) after that last "," must be other 3 coords.

I will give all code of backpack create object

if newValue == 12 then

elementBackpack[source] = createObject(3026, x, y, z)

elseif newValue == 16 then

elementBackpack[source] = createObject(1248, x, y, z)

elseif newValue == 26 then

elementBackpack[source] = createObject(1575, x, y, z)

elseif newValue == 36 then

elementBackpack[source] = createObject(1252, x, y, z)

elseif newValue == 40 then

elementBackpack[source] = createObject(364, x, y, z)

elseif newValue == 52 then

elementBackpack[source] = createObject(1636, x, y, z)

elseif newValue == 64 then

elementBackpack[source] = createObject(363, x, y, z ,)

elseif newValue == 8 then

return

end

if newValue == 26 then

attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180)

else

attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0)

end

end

end

Link to comment

How many slots your backpack have ?

If it have 26 you must change here :

if newValue == 26 then

attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180)

else

attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0)

end

else here

if newValue == 26 then

attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180)

else

attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0)

end

Try to change that numbers with : 0 , 90 , 180 , 270 . Like 90,0,90 or 90,0,180 or 90,0,270 ,etc

Link to comment
How many slots your backpack have ?

If it have 26 you must change here :

if newValue == 26 then

attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180)

else

attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0)

end

else here

if newValue == 26 then

attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180)

else

attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0)

end

Try to change that numbers with : 0 , 90 , 180 , 270 . Like 90,0,90 or 90,0,180 or 90,0,270 ,etc

Now it works perfect but now another like coyote has same problem when i change maybe its just cuz of that backpack mod?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...