Jump to content

check armour


Convetors

Recommended Posts

hey guys i was wondering is there a code that make cleo chek if cj has armour:

here somthing

[/code]

03A4: name_thread 'NECK'

 

:NECK_11

0001: wait 0 ms

04DD: 2@ = actor $PLAYER_ACTOR armour

00D6: if

0029: 2@ >= 1

004D: jump_if_false @NECK_11

087B: set_player $PLAYER_CHAR clothes_texture "DOGTAG" model "NECK" body_part 16

 

:NECK_62

0001: wait 0 ms

04DD: 2@ = actor $PLAYER_ACTOR armour

8029: not 2@ >= 1

004D: jump_if_false @NECK_62

087B: set_player $PLAYER_CHAR clothes_texture "NECK" model "NECK" body_part 16

0002: jump @NECK_11

Edited by Convetors
Link to comment
https://gtaforums.com/topic/463149-check-armour/
Share on other sites

Emmm... lol? You posted a question and made answer by yourself?

Link to comment
https://gtaforums.com/topic/463149-check-armour/#findComment-1060204959
Share on other sites

It should work properly, but you have to place 070D opcode after setting char's clothes.

Link to comment
https://gtaforums.com/topic/463149-check-armour/#findComment-1060205292
Share on other sites

good but 1 another problem is when the armour is finished and i want it to take off the armour vest it dont it give BUG that crash my game !! damn it i dont know what to do !!

 

 

 

edit:

FIXED !!

Edited by Convetors
Link to comment
https://gtaforums.com/topic/463149-check-armour/#findComment-1060206009
Share on other sites

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.