Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

144 Excellent

About hoverguy

  • Rank
    Staff Sergeant

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello @C.Hall I presume that you're using profile namespace as saving method and that the mission is not hosted in that case this code will reset saved stats for you: uid = getPlayerUID player; ["HG_Cash","HG_Bank","HG_XP","HG_Kills","HG_Gear","HG_Garage"] apply {profileNamespace setVariable [format["%1_%2",_x,uid],nil]; saveProfileNamespace;}; Load up the editor, open the debug console and copy/paste this code then exec local.
  3. Hello @Drifter The place where you put the functions provided in the wiki varies a lot... I cannot cover all the possibilities... sorry for that. You need the basic coding knowledge to figure out, you can open the file and see how it works so you get a better understanding. Thanks for using my shops.
  4. Is it some kind of variable? If so open HG\Config\HG_Config.h and set cashVariable to "rvg_money", if it's an item you will have to modify some files...
  5. Hello @Gill93 The HUD is supposed to display your current cash amount everytime. Looks like the HUD is showing 50$ but in reality the cash variable is set to 0$, to me it's jut a display issue. Make sure the cash variable is well read or that the HUD is refreshed when it needs to be. Hello @sgtpipokinho Make sure classnames are correct (case sentitive, "arifle_MXC_F" & "arifle_MXC_f" are different strings) and that they have a sell price set. I've also just fixed an issue that was blocking the sell button in disabled mode. -> click here (github).
  6. hoverguy

    Config error with Altis Life

    Hello @FirstOrderKylo L.287-288 you forgot to close two arrays { "B_Messenger_Gray_F", "EMS Bag Grey", 2000, { "", "", -1 } , { "B_Messenger_IDAP_F", "EMS Bag IDAP", 2000, { "", "", -1 } , ---> { "B_Messenger_Gray_F", "EMS Bag Grey", 2000, { "", "", -1 } }, { "B_Messenger_IDAP_F", "EMS Bag IDAP", 2000, { "", "", -1 } },
  7. Hello @Harine Thank you it's always a pleasure to read things like this. clearInventory is only for vehicles, and yeah gear was not saving correctly especially on first time setup where it was completely skipped, now it's fixed https://github.com/Ppgtjmad/SimpleShops/commit/3a270e8096e67ed9ad8d0165b1f1677dea9166ea @bl2ck dog, Thanks for the credits & good luck with your project :)
  8. Hello @Fr3eMan As an example: private["_tree","_parentIndex","_childIndex","_grandChildIndex"]; disableSerialization; _tree = (findDisplay 1500) displayCtrl 456; // Clear tree tvClear _tree; // Create parent _parentIndex = _tree tvAdd [[],"PARENT"]; // Create child _childIndex = _tree tvAdd [[_parentIndex],"CHILD"]; // Create grand child _grandChildIndex = _tree tvAdd [[_parentIndex,_childIndex],"GRAND CHILD"]; Check the Notes part here https://community.bistudio.com/wiki/tvAdd
  9. 1) You have to enable clearInventory in HG_Config.h 2) Shops weren't made for Ravage mod specifically or survival game modes hence why they're missing fuel/damage saving, will think about it :) 3) Will add it as an option
  10. Hello @cupcake_actual I will add side whitelisting to shops, coming in the next update :)
  11. Hello @bl2ck dog Thank you! Make sure you have all the required stuff in initPlayerLocal.sqf, have you tried the provided mission in editor? Is it working? Hello @taro8 It will defeat the purpose of having different traders on map, exactly what it was designed for. For example you can have one trader that only buys handguns, another one for machine guns etc... If I add price per item types it means that you can sell everything to one trader. I know it's boring and time consuming to add classnames to configs but that's how it is right now. Thanks for your proposition though and hope you will still enjoy it :)
  12. Hello @katipo66 In scripts // First method private _hasEnough = [500] call HG_fnc_hasEnoughMoney; if(_hasEnough) then { // Do shit } else { // Am so broke... }; // Second method if([500] call HG_fnc_hasEnoughMoney) then { // Do shit } else { // Am so broke... }; In addAction condition you just use the function without assigning a variable to it. Yeah I can add something like this, nobody ever asked for it tho... maybe later :) Yes database extension (check HG_Config.h header): savingMethod = "extDB"; Don't know if it makes sense to use DB for singleplayer mission to you, it does to me (local database). Hello @nelo_riot It's pulled from the game configs automagically :) There's one function that retrieves right config based on passed classname (HG_fnc_getConfig) and then in the script I use the returned config to gather display name from the said config with the given classname. Hello @Azola21 Of course you can modify the script to sell vehicles in garage, but you must follow license terms and share your work. And yes it's possible to take ownership of editor placed vehicles with an addAction (https://github.com/Ppgtjmad/SimpleShops/wiki/Useful-Functions - Set vehicle ownership part) Simple example: this addAction ["I WANT this vehicle",{[(_this select 0)] call HG_fnc_setOwner},"",0,false,false,"",'(alive player) AND (alive _target) AND ((player distance _target) < 5.5)'];
  13. Hello @J.Huff I'm afraid you're still using the old version... grab the latest from here https://github.com/Ppgtjmad/SimpleShops and preview the provided mission. All the actions are on one object.
  14. Hello @Booker- Name gate variable -> fenceGate Trigger On activation fenceGate animateSource ["Door_1_sound_source",1]; fenceGate animateSource ["Door_2_sound_source",1]; On Deactivation fenceGate animateSource ["Door_1_sound_source",0]; fenceGate animateSource ["Door_2_sound_source",0];
  15. Hello @katipo66 Well the thing is that HG_fnc_aiUnitSetup function is defined when initServer.sqf event script is fired... which is a problem because editor placed unit inits are called way before initServer.sqf... so if you put this in init box [this] call HG_fnc_aiUnitSetup; It won't work simply because on init HG_fnc_aiUnitSetup function doesn't exist. Now you can do it -> https://github.com/Ppgtjmad/SimpleShops/commit/2136244139fffe88fd292561647cafbdb44cb3b0 Also read this -> https://github.com/Ppgtjmad/SimpleShops/wiki/How-to-setup-kill-rewards When you spawn in game for the first time you have the same gear as the playable unit you just chose. Then when you buy stuff it gets saved in profile or database (depends on savingMethod token value in HG_Config.h). And yeah by default everything is saved in profile so when you try it in editor it will remember your cash amount, bought gear, vehicles etc... for next time you spawn in. Where is the dumb question? Can't find it... Thanks man :)