Jump to content

[ASK] One-handed weapon to two-handed


sheenidgs

Recommended Posts

Post what you've tried,

I've tried a few methods.

First, i tried to change the stats to 5000 because colt_cop's skill level is at 5000.

  
addEventHandler('onPlayerSpawn', root, 
    function() 
        if not setPedStat(source,22,5000) then 
            outputChatBox ( "Failed to set stats number: 22 with value: 5000", player, 255, 0, 0, false ) 
        end 
    end 
) 
  

But the function return false.

Second, i tried to change the flags from colt_cop to colt45.

Then, i convert it to hex number with calc and place this code.

uKCTq8w.png

  
addEventHandler('onPlayerSpawn', root, 
    function() 
        setWeaponProperty ( 22,"std","flags", 0x001B77 ) 
    end 
) 
  

But, the anim was going to be weird.

FgrWYUg.png

Link to comment
  • Moderators

nvm, I will help you soon after dinner.

Postby abxf on Tue Sep 03, 2013 10:07 am

setWeaponProperty and use flags.

I created it just like he said, but it will not look nice. (the shoot animation)

setWeaponProperty (22,"poor","flags",0x000002) 
--setPedStat(source,22,0) 
  

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...