Quantcast

Jump to content

» «
Photo

Backpack Code

6 replies to this topic
freshgamer10
  • freshgamer10

    Player Hater

  • Members
  • Joined: 27 Apr 2013

#1

Posted 27 April 2013 - 12:49 PM

Hey,

I've been trying to find out how you add the Backpack, Bag etc. to Niko. So I basically need the Source Code of the Backpack Mod. If anyone could help me with that, I'd really appreciate it. Thanks in advance.


pedro2555
  • pedro2555

    Open Sourcer

  • Members
  • Joined: 02 Sep 2012
  • Portugal

#2

Posted 27 April 2013 - 07:26 PM

I think that mod has no source code, it is just a texture change.

TimerSoEasy
  • TimerSoEasy

    Player Hater

  • BUSTED!
  • Joined: 27 Apr 2013

#3

Posted 27 April 2013 - 07:33 PM

LMAO xD

PacketOVerload_x64Bit
  • PacketOVerload_x64Bit

    A.U.I.R.B.2.U. Author & Cool Guy

  • Members
  • Joined: 13 Mar 2010
  • Canada

#4

Posted 28 April 2013 - 12:07 AM

A backpack mod? It's just a piece of clothing component you can call in the engine. Use Simple Native Trainer to get it under Model Options -> Clothes.

freshgamer10
  • freshgamer10

    Player Hater

  • Members
  • Joined: 27 Apr 2013

#5

Posted 28 April 2013 - 06:37 AM

QUOTE (PacketOVerload_x64Bit @ Sunday, Apr 28 2013, 00:07)
A backpack mod? It's just a piece of clothing component you can call in the engine. Use Simple Native Trainer to get it under Model Options -> Clothes.

I know, but I want to include it in my script, so I need the code to add the clothing component.

freshgamer10
  • freshgamer10

    Player Hater

  • Members
  • Joined: 27 Apr 2013

#6

Posted 28 April 2013 - 06:39 AM

QUOTE (pedro2555 @ Saturday, Apr 27 2013, 19:26)
I think that mod has no source code, it is just a texture change.

Isn't there any way to do that using code? Preferably C#...

Prof_Farnsworth
  • Prof_Farnsworth

    Ambient Modder

  • Members
  • Joined: 25 Feb 2011

#7

Posted 02 May 2013 - 05:00 AM

QUOTE (freshgamer10 @ Sunday, Apr 28 2013, 06:39)
QUOTE (pedro2555 @ Saturday, Apr 27 2013, 19:26)
I think that mod has no source code, it is just a texture change.

Isn't there any way to do that using code? Preferably C#...

Not sure if you got this solved already, but here is how I add the duffel bag to Niko:

CODE
GTA.Native.Function.Call("SET_CHAR_COMPONENT_VARIATION", Player.Character, 3, 1, 0);


The second integer value (1 in the above) sets the duffel bag, to remove it set this to 0.

I am not sure which backpack you are referring to, but I would assume it uses a different component value, and you can test other combinations using the above as well.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users