Quantcast

Jump to content

» «
Photo

[C#] Removing helmet & player component

2 replies to this topic
nordi
  • nordi

    Crackhead

  • Members
  • Joined: 17 Mar 2014
  • France

#1

Posted 13 May 2014 - 01:07 PM Edited by nordi, 16 August 2014 - 05:39 PM.

Hey

 

 

I was able to spawn a helmet and change the upper body of my player, but I have 2 problems:

  • Despite 2 different approaches, I can't remove the helmet on my player, I tried the following code but it do not works:

  • I want to spawn what on the trainer is called "special 1" (the breathing apparatus of the firefighter), so after a quick tour on the textures names of the ped file, it appears I need to call: SUS2, but It do not work:

Thanks.


Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#2

Posted 19 May 2014 - 08:58 PM

Sorry, i have no idea :/

LetsPlayOrDy
  • LetsPlayOrDy

    Too fast for ya

  • Members
  • Joined: 24 Aug 2013
  • United-States

#3

Posted 05 June 2014 - 01:04 PM Edited by LetsPlayOrDy, 06 June 2014 - 12:09 PM.

Change Player.Character to just Player.

 

So it'd look like this:

GTA.Native.Function.Call("REMOVE_PLAYER_HELMET", Player, true);

And maybe look at the REMOVE_PED_HELMET function too. Should look something like this:

GTA.Native.Function.Call("REMOVE_PED_HELMET", Player.Character, true);




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users