trapx1 Posted July 7, 2020 Share Posted July 7, 2020 I am trying to give users an option to change what weapons a ped spawns with in my bodyguard mod with .INI file. Heres what i have done: CUSTOM1PRIMARY = config.GetValue<string>("Custom", "CUSTOM1PRIMARY", "SpecialCarbine"); and then: bodyguardC1.Weapons.Give(WeaponHash.CUSTOM1PRIMARY, 999999, true, true); But it says that WeaponHash does not contain a definition for CUSTOM1PRIMARY, so i am not sure how i can go about this. Any ideas, i am a bit stuck? Link to comment Share on other sites More sharing options...
Tanjitsu Posted July 12, 2020 Share Posted July 12, 2020 (edited) WeaponHash CUSTOM1PRIMARY = (WeaponHash)config.GetValue<string>("Custom", "CUSTOM1PRIMARY", "SpecialCarbine"); bodyguardC1.Weapons.Give(CUSTOM1PRIMARY, 999999, true, true); Edited July 14, 2020 by Tanjitsu Link to comment Share on other sites More sharing options...
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