ThirteenAG 3,748 Posted April 28, 2011 Share Posted April 28, 2011 Yesterday i finished GTA 3 version and now i'm working on IV script. And i have a question about EFLC support, now i'm using AMMO_DesertEagle = Player.Character.Weapons.DesertEagle.Ammo; to check whether there is player have this weapon when he died or arrested, but what i should check in EFLC with episodic weapons? In documentation(WeaponCollection Members) i see only IV weapons. 2 Link to post Share on other sites
lolleroz 249 Posted April 28, 2011 Share Posted April 28, 2011 (edited) AMMO_DesertEagle = Player.Character.Weapons.Episodic_01.Ammo; Try it. By the way, great job. On all the scripts. I dunno in what language you are writing it, but in C# I have example: Player.Character.Weapons.FromType(episodic_03).Ammo = 30000 C# should work same as VB Edited April 28, 2011 by lolleroz Link to post Share on other sites
ThirteenAG 3,748 Posted April 28, 2011 Author Share Posted April 28, 2011 AMMO_DesertEagle = Player.Character.Weapons.Episodic_01.Ammo; Player.Character.Weapons.FromType(episodic_03).Ammo = 30000 1) AMMO_Episodic_01 = Player.Character.Weapons.Episodic_01.Ammo; Errors in script BuyBackYourWeapons.cs in Line 62: 'GTA.value.WeaponCollection' does not contain a definition for 'Episodic_01' and no extension method 'Episodic_01' accepting a first argument of type 'GTA.value.WeaponCollection' could be found (are you missing a using directive or an assembly reference?) 2) AMMO_Episodic_01 = Player.Character.Weapons.FromType(episodic_01).Ammo; Errors in script BuyBackYourWeapons.cs in Line 62: The name 'episodic_01' does not exist in the current context Any other suggestions? Link to post Share on other sites
lolleroz 249 Posted April 29, 2011 Share Posted April 29, 2011 How about: AMMO_P90 = Player.Character.Weapons.P90.Ammo; or AMMO_AssaultSMG = Player.Character.Weapons.AssaultSMG.Ammo; Link to post Share on other sites
Silent 15,836 Posted April 29, 2011 Share Posted April 29, 2011 I'm curious, why the III version does not use a text box (or you have it heavily modded)? Anyway, good job. It's nice that you're releasing mods for many GTAs at one time Link to post Share on other sites
ThirteenAG 3,748 Posted April 29, 2011 Author Share Posted April 29, 2011 (edited) I'm curious, why the III version does not use a text box (or you have it heavily modded)? Anyway, good job. It's nice that you're releasing mods for many GTAs at one time I tried to use opcode 03E5, but it crash the game. So i had to use another way. lolleroz, i've got the same error. Edited April 29, 2011 by ThirteenAG Link to post Share on other sites
NudasPriest 36 Posted August 30, 2012 Share Posted August 30, 2012 I skimmed through the code and I'm not programmer, but it seems that the mod for GTA IV doesn't check to see if you have enough money to buy your weapons back, it just takes all you've got if you've got less than $2000, or just $2000. And you also lose weapons when you get arrested? but can you buy them back then? Link to post Share on other sites
Helegad 842 Posted October 2, 2016 Share Posted October 2, 2016 (edited) I'm having problems with the III script. Grenades are never given back, and it seems that if grenades are confiscated, then other weapons are given back with either 1.5x or 2x the ammo. Edited October 2, 2016 by Helegad Link to post Share on other sites
DMC34 1 Posted October 1, 2017 Share Posted October 1, 2017 The links for III, VC, and San Andreas appear to be dead. Does anyone know where I might be able to find copies of these? Link to post Share on other sites
Lurk Morrison 46 Posted October 2, 2017 Share Posted October 2, 2017 https://github.com/ThirteenAG/III.VC.SA.CLEOScripts/releases/tag/BuyBackYourWeapons 1 Link to post Share on other sites
DMC34 1 Posted October 5, 2017 Share Posted October 5, 2017 Thanks! 1 Link to post Share on other sites
xlaar 13 Posted May 7, 2020 Share Posted May 7, 2020 miensometimes chrashes what should ı do? Link to post Share on other sites
BOSSSSS-GG 45 Posted June 5, 2020 Share Posted June 5, 2020 On 4/29/2011 at 12:44 AM, ThirteenAG said: 1) AMMO_Episodic_01 = Player.Character.Weapons.Episodic_01.Ammo; Errors in script BuyBackYourWeapons.cs in Line 62: 'GTA.value.WeaponCollection' does not contain a definition for 'Episodic_01' and no extension method 'Episodic_01' accepting a first argument of type 'GTA.value.WeaponCollection' could be found (are you missing a using directive or an assembly reference?) 2) AMMO_Episodic_01 = Player.Character.Weapons.FromType(episodic_01).Ammo; Errors in script BuyBackYourWeapons.cs in Line 62: The name 'episodic_01' does not exist in the current context Any other suggestions? The proper line for this is Ammo_P90 = Player.Character.Weapons(Weapon.Episodic_12).Ammo = xxx (xx is integer means Ammo)(Episodic_12 is P90 or use TBOGT_AssaultSMG instead of Episodic_12). ) Link to post Share on other sites