Guest Posted August 4, 2017 Share Posted August 4, 2017 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) Link to comment
Zorgman Posted August 4, 2017 Share Posted August 4, 2017 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 ) Link to comment
Guest Posted August 4, 2017 Share Posted August 4, 2017 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) Link to comment
Zorgman Posted August 4, 2017 Share Posted August 4, 2017 (edited) 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 August 4, 2017 by Zorgman Link to comment
Guest Posted August 7, 2017 Share Posted August 7, 2017 No, it doesn't work. And :~ load of errors came in my server. I just need to make 2 flags to work. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now