Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Prof_Farnsworth

Farnsworth's Business Mod

Recommended Posts

Prof_Farnsworth

Farnsworth's Business Mod Complete v2

 

Farnsworth's Business Mod

 

Allows Niko to purchase, own, collect income, and hire and fire staff from locations around Liberty City. Also has additional features related to the businesses.

 

Oct. 21 HOTFIX - Deliveries not possible unless you owned the business - FIXED

 

Please read ReadMe!!!!

 

Complete version 2 changes:

 

-Robberies added to certain purchasable businesses. Details in ReadMe

-Ability to hire/fire employees added to all businesses. Some locations will have extra peds, vehicles, etc spawn when employees are hired. Hiring employees also gives a chance to increase income. Details in ReadMe.

-Lunatics added: Certain businesses now have a chance of a lunatic spawning and killing patrons of your business. Details in ReadMe.

-Jobs added: There are now various jobs you can perform around Liberty City, including (paramedic (ambulance driver), food delivery driver, and fuel recovery. Details in ReadMe.

 

 

Previous Changes are as follows:

 

-businesses still appear as "destination" blips on the map, but are now named (each business is named on the map when moused over)

-when a business is purchased, the blip will change into a tie, signifying ownership of the business

-when the income reaches a certain amount (varies for each property but is usually near the property income cap) the blip will change into a dollar sign. This signifies a high income at that property that should be collected soon.

-most businesses are enterable to allow future updates to add employees and scenarios (different for each type of business)

-SAVING THE GAME will now save all businesses owned and statistics of each property (time owned, current income, etc)

-you can now change which keys are used for purchasing and collecting income in the ini. Change "RControlKey" and/or "RShiftKey" to whichever key you prefer to use (i.e. "O" or "J") and save the ini.

 

NOTE: The script runs once every 6 seconds, and it is big. If no prompt appears while Niko is under a marker, please wait a few seconds before reporting it as a bug.

 

 

PRECAUTIONS: Due to the mod running on play time, I recommend SAVING in a safehouse before quitting the game, as the "Properties owned" file will be written on each save (time,income,owned status). (i.e. If you own a property, play for an hour, then reload without saving, the total play time will not be updated, as well as income, time, and owned status)

 

 

INSTALLATION: Place the "businesses.net" and "businesses.ini" files into the "scripts" folder of your root GTA IV directory. DELETE the business.net.dll and business.ini files from the first version of this mod, as they will not overwrite.

 

Tested on GTA IV V1.0.4 and v1.0.7 using scripthook.net 1.7.1.7, scripthook 0.4 and 0.51, and latest xliveless 0.997.

 

 

 

COPYRIGHT: Please do not upload this mod anywhere else, reuse, or modify it in any way. Please respect others work.

 

Hope it is fun, keep an eye for future updates.

 

Enjoy

 

Prof. Farnsworth

Edited by Prof_Farnsworth

Share this post


Link to post
Share on other sites
icelaglace

FINALLY! WELL DONE MATE ! <3

I'll try that ASAP.

Share this post


Link to post
Share on other sites
Symbiote

 

BUGS: "System.IO.Exception" errors appear occasionally. I believe this is due to the native function calls being used, but it does not seem to affect the mod.

Since the exception is in System.IO, it's probably related to reading and writing files. Perhaps the script is trying to read and write to the same file at the same time?

Share this post


Link to post
Share on other sites
Prof_Farnsworth
BUGS: "System.IO.Exception" errors appear occasionally. I believe this is due to the native function calls being used, but it does not seem to affect the mod.

Since the exception is in System.IO, it's probably related to reading and writing files. Perhaps the script is trying to read and write to the same file at the same time?

That is what I thought initially, but I have seen this error in other scripts that use native function calls with no reading/writing to files. So I am not sure. notify.gif

Share this post


Link to post
Share on other sites
Symbiote

Hmm, bizarre.

 

Well anyway, I just finished testing this native function: "DID_SAVE_COMPLETE_SUCCESSFULLY". It actually works, so you might want to use this to determine when to save business data.

 

I'll PM you with how I used it in my code, so I don't clutter up this thread too much. biggrin.gif

Share this post


Link to post
Share on other sites
Prof_Farnsworth
Hmm, bizarre.

 

Well anyway, I just finished testing this native function: "DID_SAVE_COMPLETE_SUCCESSFULLY". It actually works, so you might want to use this to determine when to save business data.

 

I'll PM you with how I used it in my code, so I don't clutter up this thread too much. biggrin.gif

Thanks very much for your help.

 

@icelaglace - hope you enjoy it.

Share this post


Link to post
Share on other sites
odiomoratti

 

The text "destination" appears over all of

 

them, this will be changed if method is discovered

Probably I'm misunderstanding the problem....but have you tried somthing like this?

 

 

Blip BlipBusiness;BlipBusiness.Name = "Whatever Business";

 

 

or maybe you can create a blip array and then for each blip in array assign the name "Unpurchased business"....

Edited by odiomoratti

Share this post


Link to post
Share on other sites
Prof_Farnsworth

 

The text "destination" appears over all of

 

them, this will be changed if method is discovered

Probably I'm misunderstanding the problem....but have you tried somthing like this?

 

 

Blip BlipBusiness;BlipBusiness.Name = "Whatever Business";

 

 

or maybe you can create a blip array and then for each blip in array assign the name "Unpurchased business"....

I'll have to give it a try. To be honest, I didn't try too many ideas for the text, as personally, it matters not, but I thought it would be a nice touch. I think I tried using a native call like change name/descriptor or something like that. This is the first time I have really used blips other than for testing, so I am still learning. (i.e. Some blips don't let you change their color, so I assumed it was the same with text)

 

Thanks for the idea, I'll see how it works.

 

TO ALL: Please do not hesitate to post bugs, suggestions or criticisms, as this is only v1.0.

Share this post


Link to post
Share on other sites
manu90mala

amazing mod, finally! it has a lot of potential, there are many possible features to be added...selling the business at a higher price after a period of profits, adding business related side-missions, buiyng stuff from other businessess to upgrade your own (with a sort of business level system) and many more....as a v 1.0 we already have a great solid base!

Share this post


Link to post
Share on other sites
gorgonut

Very good mod! It gives you motivation to earn money with other mods like HippieCommunist's mods or BR_Goianiense's Kidnapping mod! Would it be possible in a next version not require xliveless in order to work? Since I have both GTA IV and EFLC I use xliveless in only one of them in order to store the saves file in a different location, otherwise the saves are mixed up. But this is a mod I d like to have in both games. Thanks. icon14.gif

Share this post


Link to post
Share on other sites
Neova

Very cool mod, just like the older GTAs.

 

Is it possible to have this mod automatically deposit money into the bank account and then have it retrievable from the bank/atm mod? I mean, if you own a business, you would figure whoever was running it for you would make daily deposits. Or set up a period of when money is made and deposited automatically like money is made Monday to Saturday and deposited by noon and 6 pm or whatever time it closes.

 

If the money has not been deposited, AI robbers can come it. Next, you will be given revenge missions to re-collect that money and be justified for causing mayhem.

Share this post


Link to post
Share on other sites
KaLaC

cool, the VC feature is finally brought back to IV!! biggrin.gif

Share this post


Link to post
Share on other sites
Prof_Farnsworth

 

amazing mod, finally! it has a lot of potential, there are many possible features to be added...selling the business at a higher price after a period of profits, adding business related side-missions, buiyng stuff from other businessess to upgrade your own (with a sort of business level system) and many more....as a v 1.0 we already have a great solid base!

 

 

If the money has not been deposited, AI robbers can come it. Next, you will be given revenge missions to re-collect that money and be justified for causing mayhem.

 

You are way ahead of me(still need to add properties to the other 2 islands), but good ideas nonetheless. As for the bank account, I have no idea how to make them work together, but maybe in the future?

 

 

Very good mod! It gives you motivation to earn money with other mods like HippieCommunist's mods or BR_Goianiense's Kidnapping mod! Would it be possible in a next version not require xliveless in order to work? Since I have both GTA IV and EFLC I use xliveless in only one of them in order to store the saves file in a different location, otherwise the saves are mixed up. But this is a mod I d like to have in both games. Thanks.

 

This should work with any loader. The only requirement is scripthook.net, however, the only one I have tested this with is xliveless.

 

Glad everyone enjoys it!

Share this post


Link to post
Share on other sites
Symbiote

 

As for the bank account, I have no idea how to make them work together, but maybe in the future?

Since the Bank Account code is uncompiled, it would be possible to incorporate it into your mod if necessary.

 

Edit: The .NET scripthook has an example of how to communicate between separate scripts. I don't quite understand it, but we could try it sometime.

Edited by AngryAmoeba

Share this post


Link to post
Share on other sites
Prof_Farnsworth

 

As for the bank account, I have no idea how to make them work together, but maybe in the future?

Since the Bank Account code is uncompiled, it would be possible to incorporate it into your mod if necessary.

 

Edit: The .NET scripthook has an example of how to communicate between separate scripts. I don't quite understand it, but we could try it sometime.

In theory, it would be quite simple to do, if the scripts could communicate.

 

My thinking against auto deposit was that it would seem like a money dump, with less interactivity, when we already don't have enough to spend money on. Once you own twenty or so business's, the income will really start building. At fifty or so, it would almost be a constant stream of money into the bank account. I was also aiming to make this more like the old GTA's business's, where each can max out on income if not collected. I do like the idea of implementing events and the like for certain businesses though.

 

That being said, if it is easy enough, there can be two versions. So Angry, I'll PM you and see what you think.

Share this post


Link to post
Share on other sites
Symbiote

 

My thinking against auto deposit was that it would seem like a money dump, with less interactivity, when we already don't have enough to spend money on.

Now that I think about it, I agree with you. Maybe we should forget about it. tounge2.gif

Share this post


Link to post
Share on other sites
luckymanhog

Nice coding on this mod.

Share this post


Link to post
Share on other sites
Prof_Farnsworth
My thinking against auto deposit was that it would seem like a money dump, with less interactivity, when we already don't have enough to spend money on.

Now that I think about it, I agree with you. Maybe we should forget about it. tounge2.gif

Alright, but if you change your mind, it could be looked into.

Share this post


Link to post
Share on other sites
Neova
My thinking against auto deposit was that it would seem like a money dump, with less interactivity, when we already don't have enough to spend money on.

Now that I think about it, I agree with you. Maybe we should forget about it. tounge2.gif

What about designating one or more of your properties into a cash safehouse? Expanding on this idea:

 

Enable auto deposit to cash safehouse and not banks since you are avoiding taxes here. biggrin.gif

Safe house deposits can be digital if you buy say computer upgrades for each of your businesses (most expensive but safe option), or

"delivered" using a courier (second most expensive but subject to possible hits from robbers) or you must collect manually (free, but has cash limits).

Safe houses may be noticed over time by rival or other gangs and they may attempt to rob them for "the big hit" in addition to your businesses thus keeping you on your toes regarding your money supply. Same for your couriers who help deliver your money.

 

This way, while you can accumulate a lot money, there is a way to offset it and keep you busy. Hey, you only worry about what we have and not what don't have right? biggrin.gif

 

Of course you can hire body guards for your business, safe houses and couriers and it helps offsets the max amount of money you collect.

 

Share this post


Link to post
Share on other sites
Prof_Farnsworth
My thinking against auto deposit was that it would seem like a money dump, with less interactivity, when we already don't have enough to spend money on.

Now that I think about it, I agree with you. Maybe we should forget about it. tounge2.gif

What about designating one or more of your properties into a cash safehouse? Expanding on this idea:

 

Enable auto deposit to cash safehouse and not banks since you are avoiding taxes here. biggrin.gif

Safe house deposits can be digital if you buy say computer upgrades for each of your businesses (most expensive but safe option), or

"delivered" using a courier (second most expensive but subject to possible hits from robbers) or you must collect manually (free, but has cash limits).

Safe houses may be noticed over time by rival or other gangs and they may attempt to rob them for "the big hit" in addition to your businesses thus keeping you on your toes regarding your money supply. Same for your couriers who help deliver your money.

 

This way, while you can accumulate a lot money, there is a way to offset it and keep you busy. Hey, you only worry about what we have and not what don't have right? biggrin.gif

 

Of course you can hire body guards for your business, safe houses and couriers and it helps offsets the max amount of money you collect.

Wow, these are some great suggestions. My God, the coding though!!!

 

I will probably try to implement something like this with the bigger businesses (i.e. bank, stock exchange, airport?) before grouping the small ones together.

 

Thanks for the comments.

Share this post


Link to post
Share on other sites
manu90mala

any update Prof? are you adding businesses to the other 2 island?

Share this post


Link to post
Share on other sites
Prof_Farnsworth
any update Prof? are you adding businesses to the other 2 island?

I am, apologies for the delay. Since it got warm finally, I have been out a lot. I am hoping to update a few of my mods this or next weekend.

 

Also, been dealing with people stealing this and calling it their own. angry.gif

Share this post


Link to post
Share on other sites
manu90mala

take your time, really looking forward for businesses in algonquin icon14.gif

Share this post


Link to post
Share on other sites
BigSlongsDaddy

profess have you stopped with this mod now it seems you haven't updated for some time ?

Share this post


Link to post
Share on other sites
Prof_Farnsworth
profess have you stopped with this mod now it seems you haven't updated for some time ?

No, just summer time. Not too much time on the PC. Meant to do some last week, but it's too nice out.

 

Probably expect it before the end of July.

Share this post


Link to post
Share on other sites
WhiteGoblin
No, just summer time. Not too much time on the PC. Meant to do some last week, but it's too nice out. Probably expect it before the end of July.

Man take all the time in the world to get back to it. Sure we're all waiting in anticipation but I think we all understand probably spending way to much time infront of the keyboard ourselves. It's beautiful outside here too and I take every chance I can to get a moment or two out in it. biggrin.gif

 

Share this post


Link to post
Share on other sites
Prof_Farnsworth

NEED HELP OR SUGGESTIONS!!!

 

So after updating and reworking this mod. I have found that it is way too big. It actually breaks minigames (i.e. bowling) and also some missions and other script mods I have running. It also will freeze random peds around the city.

 

What I would like to know is whether anyone would still want the update, even with these effects to normal game play?

 

Also, if anyone has any suggestions as to how to correct the issue, I am all ears.

 

Thanks for any input.

 

Oh, I know It's been a while since I've been here. What can I say? dozingoff.gif

Share this post


Link to post
Share on other sites
odiomoratti
NEED HELP OR SUGGESTIONS!!!

 

So after updating and reworking this mod. I have found that it is way too big. It actually breaks minigames (i.e. bowling) and also some missions and other script mods I have running. It also will freeze random peds around the city.

 

What I would like to know is whether anyone would still want the update, even with these effects to normal game play?

 

Also, if anyone has any suggestions as to how to correct the issue, I am all ears.

 

Thanks for any input.

 

Oh, I know It's been a while since I've been here. What can I say? dozingoff.gif

well....you should share some code.....otherwise we can't help you.

Share this post


Link to post
Share on other sites
Prof_Farnsworth

well....you should share some code.....otherwise we can't help you.

I am actually just looking for general suggestions/see if anyone else has run into similar problems. I am pretty sure it is size related, as I've split the code into two scripts (each with about half the businesses) and separately, each works, but both at the same time (i.e. all businesses) does not. So I don't think there are errors in the code itself.

Share this post


Link to post
Share on other sites
odiomoratti

well....you should share some code.....otherwise we can't help you.

I am actually just looking for general suggestions/see if anyone else has run into similar problems. I am pretty sure it is size related, as I've split the code into two scripts (each with about half the businesses) and separately, each works, but both at the same time (i.e. all businesses) does not. So I don't think there are errors in the code itself.

ok, but since you asked for solutions......without the code we can't do anything.

 

I don't think it can be a size problem because scripts like LCPD FR (thousands of lines)....have no errors of this type.

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.