Recommended Posts

Hello , I have quick question. How to add more weapon properties ?? Because when I try to add flag 0x000010 it doesn't work. So how ?

addEventHandler("onResourceStart", resourceRoot, -- resourceRoot == the resource that just started (this resource)
function ()
    setWeaponProperty("ak-47", "poor", "flags", 0x000020) 
end)
 

Share this post


Link to post

Looks like it should work.

Is setWeaponProperty(30, "poor", "flag_move_and_aim" , true)  equivalent syntax for this?

I've done it succesfully for the rocket launcher like this: setWeaponProperty(35, "pro", "flag_aim_1st_person",false )

Share this post


Link to post

So how it would look like ? I cant understand

I need this, but this doesn't work , I dont know what Im doing wrong. First flag works perfectly, but second flag doesn't work.

addEventHandler("onResourceStart", resourceRoot, -- resourceRoot == the resource that just started (this resource)
function ()
    setWeaponProperty("ak-47", "poor", "flags", 0x000020)

   setWeaponProperty("ak-47", "poor", "flags" , 0x000010)
end)
 

Share this post


Link to post
addEventHandler("onResourceStart", resourceRoot, function ()
setWeaponProperty(30, "poor", "flag_move_and_aim" , true)
setWeaponProperty(30, "std", "flag_move_and_aim" , true)
setWeaponProperty(30, "pro", "flag_move_and_aim" , true)
setWeaponProperty(30, "poor", " flag_move_and_shoot " , true)
setWeaponProperty(30, "std", " flag_move_and_shoot" , true)
setWeaponProperty(30, "pro", " flag_move_and_shoot" , true)
end) 

maybe this will work?

Edited by Zorgman

Share this post


Link to post

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.