Welcome to Altis Life RPG

Register now to gain access to all of our features.
Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.


Note that you can now sign-in with your Steam account.


This message will be removed once you have signed in.

  • Announcements

    • Rozo

      Donations   09/18/2016

      Hello,
        We've added a donation block on the right side. All of those donation goes directly to the developer of Altis Life mod ( currently BoGuu ). None of that money is used to maintain the forum. In the future we might add a donation button to support the forum, but for now we want to encourage the developer because they went through a lot. To discuss this topic - Here
    • Shakir Darwish

      IS YOUR SERVER BROKEN SINCE 1.64 UPDATE?   09/22/2016

      If your server is broken since 1.64 go check this link thanks. https://github.com/AsYetUntitled/Framework/issues/104
    • Rozo

      Sad Day   01/04/2017

      Good evening community of Altis Life RPG, Today was a sad day. We learned the hard way that one of the helper was using his status and visibility on the forum to do things i wouldn't imagine.  We were warned about this user in the beginning, we talked about his behavior and he said that they were things of the past. We were fooled.
      Unfortunately, he fooled other community members by selling stolen content and impersonating his role as a developer in another community. Here's a remember of one of the rules on our forum, No selling scripts, snippets, or services.   So if anyone come across someone who's selling his services, scripts or whatever, Report them. Especially if it's coming from an Helper, Mod, Admin. No one in the staff should ask for money, we already mention this when we reopened the forum and that rule is here to stay.

      We can't be sorry enough for what happen here, for any harm it as caused among other communities, for money that shouldn't been spent and we truly hope this doesn't happen again.

      As for the user in question, he is now banned from our forum and discord and we wish to never cross his path again.
        If there's anything we can do hit us on Discord or send a message to an admin.
      Thanks, Rozo.

Leaderboard


Popular Content

Showing most liked content since 03/20/2017 in all areas

  1. 6 likes
    ============================================================================================================ Difficulty: Easy Tutorial By: Hyper4u ============================================================================================================ Open description.ext and under CfgSounds add save and then open fn_spawnConfirm go to Under add Then you put your sound in root -> sounds and name it Welcome and remember it has to be an .ogg AND DONT FORGET TO LEAVE A LIKE! THANKS
  2. 6 likes
    Hi All I've put together a list of what i believe are the most common questions and answers to peoples problems when scripting Altis Life, This should help people find answers to questions more quickly and people are more then welcome to comment if i have left something out with a link and ill update the list. Ill update as i go and hope this helps someone. The aim is that all scripts ect will be working so please let me know if something is broken, Thanks. [Admin please feel free to sticky this if you think it could be off some help ] ========= Mission Editing ========= My mission won't launch after i map edit? Click Here How do i disable fog? Click Here Can i allow players to spawn at there gang base? Click Here How to change open shop objects? Click Here How do i add a radiation zone? Click Here How do i move the federal reserve? Click Here How do i add a second bank to altis? Click Here ========= Script Help ========= How do i change my taser weapon? Click Here How do i add zip ties? Click Here How do i add a welcome side script? Click Here How do i add a suicide vest? Click Here How do i add a push vehicle script? Click Here How do i add anti VDM [4.5]? Click Here How do i add peaceable objects for police? Click Here How do i add effects for marijuana? Click Here How do i add the ability for people to rob a gas station? Click Here How do i add a dynamic market? Click Here How do i install task force radio on my server? Click Here How do i add a bus transportation system? Click Here How to add a new status bar? Click Here How do i add buy-able load outs? Click Here How do i add meth drug? Click Here How do i add a intro cam? Click Here How do i add a outro cam? Click Here How do i add a cop pat down script? Click Here ========= Config Help ========= How do i allow players to save weapons? Click Here Why are licences being removed after i kill someone? Click Here How do i turn off spyglass? Click Here How do i rename a shop? Click Here How do i add a custom difficulty? [Template Included] Click Here How to find a colour code? Click Here How do i change the carry weight of a bag? Click Here How do i add BEC and server restarts? Click Here How do i add license's? Click Here How do i remove snakes from the server? Click Here How do i add more cop ranks? Click Here How do i add car lock and unlock sounds? Click Here How do i increase the animal population around the hunting zone ? Click Here How do i remove public cops? Click Here How do i change the repair kit timing? Click Here How do i change player start cash? Click Here How do i change player starting equipment? Click Here How do i make tool kits infinite? Click Here Key Handler Refrence Click Here ========= Texture Help ========= Where can i find some new textures? Click Here How do i add new car textures? Click Here How do i add vehicle skins? Click Here How do i add different uniforms for cop levels? Click Here or Click Here Cop and Medic skin tutorial Click Here More car textures Click Here ========= Altis Life Server Files ========= Altis Life 4.0 Download Click Here - Altis Life 4.0 Setup Click Here Altis Life 4.4 Download Click Here - Altis Life 4.4 Setup Click Here ========= Other Useful Help ========= Admin Debug Commands Click Here Arma 3 assets list Click Here Auto server build update and backup Click Here
  3. 5 likes
    Morphine Currently, there's not many ways of Healing in Altis Life. You have First Aid Kits or Medkits. You could argue that the following script is pointless, sure. But, I wanted medics to have a few more items added to their arsenal, so I made morphine which takes up virtual weight, instead of inventory weight. Morphine heals a player over time to almost full health, and can be used by medics to treat injured people. It will also cause a few side-effects on use, which can last a while. It's up to you if you want civilians to have access to this Item, as it can be considered a bit over-powered, however to me it is better than Medkits which offer instant 100% health. It can also be classed as illegal, if needed. DISCLAIMER: This script has been tested and is working on Altis Life version 5.0.0. Use at your own risk if you are using on anything lower. Tutorial 1. In your functions.hpp add the following to class Actions: class injectAction {}; Then add the following to class Items: class morphine {}; 2. Open fn_useItem.sqf and under the following: case (_item isEqualTo "lockpick"): { [] spawn life_fnc_lockpick; closeDialog 0; }; Add: case (_item isEqualTo "morphine"): { if(([false,_item,1] call life_fnc_handleInv)) then { [] spawn life_fnc_morphine; }; }; 3. In config_vItems.hpp add the following class: class morphine { variable = "morphine"; displayName = "STR_Item_Morphine"; weight = 1; buyPrice = 0; sellPrice = 0; illegal = false; edible = -1; icon = "icons\Morphine.paa"; }; Also, add the item to the medical market class med_market { name = "STR_Shops_Market"; side = "med"; conditions = ""; items[] = { "waterBottle", "rabbit", "apple", "redgull", "tbacon", "fuelFull", "peach", "defibrillator", "morphine" }; }; 4. Open CfgRemoteExec.hpp and add the following to the functions for everyone: F(life_fnc_morphine,ANYONE) 5. Make a new file called fn_injectAction.sqf inside core\actions: /* File: fn_injectAction.sqf Author: Ilusionz Description: Handles the animation and script execution for medics when using Morphine on an injured person. */ private["_target"]; _target = cursorTarget; //Error checks if(isNull _target) exitWith {}; if(!isPlayer _target) exitWith {}; if(life_inv_morphine != 0) then { titleText[localize "STR_NOTF_Morphine","PLAIN"]; [player,"AinvPknlMstpSnonWrflDnon_medic1"] remoteExec ["life_fnc_animSync",0]; sleep 2; titleText[localize "STR_NOTF_MorphineInj","PLAIN"]; [] remoteExec ["life_fnc_morphine",_target]; [false,"morphine",1] call life_fnc_handleinv; player playMoveNow "AmovPercMstpSnonWnonDnon"; }; 6. Create a new file inside core\items called fn_morphine.sqf: /* File: fn_morphine.sqf Author: Ilusionz Description: Upon use of Morphine, this script will add health over time while also giving a bit of a high. */ private["_damage","_health"]; closeDialog 0; hint "You suddenly feel very nauseous, yet your pains are fading."; sleep 3; "radialBlur" ppEffectEnable true; enableCamShake true; for "_i" from 0 to 19 do { "radialBlur" ppEffectAdjust [random 0.06,random 0.06,0.25,0.25]; "radialBlur" ppEffectCommit 1; addcamShake[random 3, 1, random 3]; sleep 1; }; for "_health" from 0 to 29 do { while {damage player > 0.1} do { _damage = damage player; _damage = _damage - 0.05; player setDamage (_damage); [] call life_fnc_hudUpdate; sleep 5; }; }; "radialBlur" ppEffectAdjust [0,0,0,0]; "radialBlur" ppEffectCommit 5; sleep 6; "radialBlur" ppEffectEnable false; resetCamShake; 7. Open fn_setupActions.sqf and add the following to the independent case: //Inject Morphine life_actions = life_actions + [player addAction[localize "STR_pAct_Inject",life_fnc_injectAction,"",0,false,false,"",' !isNull cursorTarget && player distance cursorTarget < 3.5 && isPlayer cursorTarget && damage cursorTarget > 0.1']]; 8. Add the following to your Stringtable.xml: <Key ID="STR_NOTF_MorphineInj"> <Original>You have administered morphine!</Original> </Key> <Key ID="STR_NOTF_Morphine"> <Original>You are administering morphine!</Original> </Key> <Key ID="STR_Item_Morphine"> <Original>Morphine Syrette</Original> </Key> <Key ID="STR_pAct_Inject"> <Original>Inject Morphine</Original> </Key> That's it! Attached to this tutorial is an icon for the Morphine, so make sure you download it! Thanks to RyanTT for help with a few issues regarding this script! If you run in to any issues please post below. Morphine.paa
  4. 4 likes
    This script stops people from changing their name once they join the server with their first name. Credit goes to some guy named "said11" Go to fn_requestReceived.sqf After failMission "SpyGlass"; }; place this, line ~30 ish if(profileName != _this select 1) exitWith { hint format["Your old nickname %1",_this select 1]; [format["For your key is fixed another nickname, enter your old nickname in the profile of the game!<br/><br/>Your old nickname <t color='#b20303'>%1</t><br/><br/>If you have any problems with the change nickname - refer to the forum <t color='#665bff'>vk.com/russlandlife</t>", _this select 1], "Registered nickname change", "adopt" ] call BIS_fnc_guiMessage; ["NameExists",false,false] call BIS_fnc_endMission; }; Add this new class to your description.ext: class NameExists { title = "Change the nickname"; subTitle = ""; description = "For your key is fixed another nickname, enter your old nickname in the profile of the game!"; pictureBackground = ""; picture = ""; pictureColor[] = {0,0.3,0.6,1}; }; This should work, if it does not let me know.
  5. 3 likes
    MySQL Auto-Backup Summary: This tutorial will show you step by step how to setup automated backups of your MySQL DB every 6 hours on a Windows Server. I will assume your are using MySQL 5.7x64 and Workbench 6.3, but you can adapt this guide to MariaDB and Heidi with the same code. Tutorial: Login to your dedicated server. Download my SQL Backup Zip MySQLBackups.zip Extract the zip file to C:\ Open MySQL Workbench, and login as root. Click on users and privileges: Create a new user called backupadmin: Click on administrative roles, and give our newly created backupadmin user the BackupAdmin role: Now open the MySQLBackups folder you extracted to C:\ Edit mysqlbackup.bat in your preferred editing program. Line 43: Change the password to the password you gave backupadmin. Save and Close. Press windows key and R to bring up the run prompt and type Taskschd.msc. Click create task: End a title and for the task: Go to the trigger tab, and select new. Select a start time of your choosing,and set the repeat to 6 hours:. Go to the actions tab and brows to C:\MySQLBackups\mysqlbackup.bat: All Done! Now your DB will backup every 6 hours, and keep those backups for 7 days.
  6. 3 likes
    Market Display This is a simple Dialog script for the Y-Menu which upon being opened, will pull a group of items from an array and displays a nice little description of the item along with the item's sell price (if any), buy price (if any) and weight. This was made specifically for virtual items and will not work with items such as weapons, clothing, or other items from Arma 3. Preview DISCLAIMER: These scripts were made on and tested on the most recent Altis Life Framework(v5.0.0). They may not work if you are attempting to use them on anything lower. The scripts also do not support Dynamic Markets of any kind. Tutorial 1. In your functions.hpp add the following to dialog\functions: class marketLBChange {}; class marketUpdate {}; class marketMenu {}; 2. Open dialog\functions and make a file called fn_marketLBChange: #include "..\..\script_macros.hpp" /* File: fn_marketLBChange.sqf Author: Bryan "Tonic" Boardwine Modified by Ilusionz */ private _itemControl = _this select 0; private _itemIndex = _this select 1; //Fetch some information. private _iName = _itemControl lbData _itemIndex; private _dName = M_CONFIG(getText,"VirtualItems",_iName,"displayName"); private _bPrice = M_CONFIG(getNumber,"VirtualItems",_iName,"buyPrice"); private _sPrice = M_CONFIG(getNumber,"VirtualItems",_iName,"sellPrice"); private _iWeight = M_CONFIG(getNumber,"VirtualItems",_iName,"weight"); private _iDescrip = M_CONFIG(getText,"VirtualItems",_iName,"description"); ctrlShow [60704,true]; ctrlShow [60705,true]; ctrlShow [60706,true]; ctrlShow [60707,true]; ctrlShow [60708,true]; ctrlShow [60709,true]; ctrlShow [60710,true]; ctrlShow [60711,true]; ctrlShow [60712,true]; ctrlSetText [60704, localize _dName]; ctrlSetText [60710,format ["%1",_iWeight]]; if (!(_bPrice isEqualTo -1)) then { ctrlSetText [60712,format ["$%1",[_bPrice] call life_fnc_numberText]]; } else { ctrlSetText [60712, "N/A"]; }; if (!(_sPrice isEqualTo -1)) then { ctrlSetText [60711,format ["$%1",[_sPrice] call life_fnc_numberText]]; } else { ctrlSetText [60711, "N/A"]; }; (CONTROL(60700,60709)) ctrlSetStructuredText parseText format["%1",_iDescrip]; 3. In dialog\functions make another file called fn_marketMenu.sqf: createDialog "marketdisplay"; [] call life_fnc_marketUpdate; 4. Again in dialog\functions create another file called fn_marketUpdate.sqf: #include "..\..\script_macros.hpp" /* File: fn_marketUpdate.sqf Author: Ilusionz Description: Update and fill the market menu. */ private ["_item_list","_shopItems","_name","_buyPrice","_sellPrice","_weight","_displayName"]; disableSerialization; //Setup control vars. _item_list = CONTROL(60700,67001); ctrlShow [60704,false]; ctrlShow [60705,false]; ctrlShow [60706,false]; ctrlShow [60707,false]; ctrlShow [60708,false]; ctrlShow [60709,false]; ctrlShow [60710,false]; ctrlShow [60711,false]; ctrlShow [60712,false]; //Purge list lbClear _item_list; if (!isClass(missionConfigFile >> "VirtualShops" >> "ymarket")) exitWith {closeDialog 0; hint localize "STR_NOTF_ConfigDoesNotExist";}; ctrlSetText[67003,localize (M_CONFIG(getText,"VirtualShops","ymarket","name"))]; _shopItems = M_CONFIG(getArray,"VirtualShops","ymarket","items"); { _displayName = M_CONFIG(getText,"VirtualItems",_x,"displayName"); _buyPrice = M_CONFIG(getNumber,"VirtualItems",_x,"buyPrice"); _sellPrice = M_CONFIG(getNumber,"VirtualItems",_x,"sellPrice"); _weight = M_CONFIG(getNumber,"VirtualItems",_x,"weight"); _item_list lbAdd format ["%1",(localize _displayName)]; _item_list lbSetData [(lbSize _item_list)-1,_x]; _icon = M_CONFIG(getText,"VirtualItems",_x,"icon"); if (!(_icon isEqualTo "")) then { _item_list lbSetPicture [(lbSize _item_list)-1,_icon]; }; } forEach _shopItems; 5. Open your dialog folder and create market_menu.hpp: class marketDisplay { idd = 60700; name= "marketDisplay"; movingEnable = 0; enableSimulation = 1; class controlsBackground { class Life_RscTitleBackground: Life_RscText { idc = -1; text = "Altis Item Database"; //--- ToDo: Localize; x = 0.298906 * safezoneW + safezoneX; y = 0.27516 * safezoneH + safezoneY; w = 0.170156 * safezoneW; h = 0.022 * safezoneH; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; }; class MainBackground: Life_RscText { idc = -1; x = 0.298906 * safezoneW + safezoneX; y = 0.2976 * safezoneH + safezoneY; w = 0.402187 * safezoneW; h = 0.407 * safezoneH; colorBackground[] = {0,0,0,0.7}; }; class mText: Life_RscText { idc = -1; text = "Market Database"; //--- ToDo: Localize; x = 0.300969 * safezoneW + safezoneX; y = 0.302 * safezoneH + safezoneY; w = 0.195937 * safezoneW; h = 0.022 * safezoneH; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; }; class mText2: Life_RscText { idc = -1; text = "Item Information"; //--- ToDo: Localize; x = 0.502062 * safezoneW + safezoneX; y = 0.302 * safezoneH + safezoneY; w = 0.195937 * safezoneW; h = 0.022 * safezoneH; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; }; }; class controls { class itemList: Life_RscListBox { idc = 67001; onLBSelChanged = "_this call life_fnc_marketLBChange"; x = 0.304062 * safezoneW + safezoneX; y = 0.3328 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.363 * safezoneH; }; class Title: Life_RscTitle { idc = 67003; text = "Altis Item Database"; //--- ToDo: Localize; x = 0.298906 * safezoneW + safezoneX; y = 0.2756 * safezoneH + safezoneY; w = 0.170156 * safezoneW; h = 0.022 * safezoneH; colorText[] = {0.95,0.95,0.95,1}; sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * GUI_GRID_H; }; class ButtonClose: Life_RscButtonMenu { onButtonClick = "closeDialog 0;"; idc = 60702; text = "Close"; //--- ToDo: Localize; x = 0.636641 * safezoneW + safezoneX; y = 0.7046 * safezoneH + safezoneY; w = 0.0644531 * safezoneW; h = 0.022 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {0,0,0,0.8}; }; class ItemName: Life_RscText { idc = 60704; text = ""; x = 0.497937 * safezoneW + safezoneX; y = 0.335 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; sizeEx = 2.7 * 0.02; }; class BuyPrice: Life_RscText { idc = 60705; text = "Buy Price:"; //--- ToDo: Localize; x = 0.498969 * safezoneW + safezoneX; y = 0.5308 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; sizeEx = 2.7 * 0.02; }; class SellPrice: Life_RscText { idc = 60706; text = "Sell Price:"; //--- ToDo: Localize; x = 0.498969 * safezoneW + safezoneX; y = 0.5726 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; sizeEx = 2.7 * 0.02; }; class Weight: Life_RscText { idc = 60707; text = "Weight:"; //--- ToDo: Localize; x = 0.498969 * safezoneW + safezoneX; y = 0.6166 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; sizeEx = 2.7 * 0.02; }; class Description: Life_RscStructuredText { idc = 60708; text = "Description:"; //--- ToDo: Localize; x = 0.497937 * safezoneW + safezoneX; y = 0.379 * safezoneH + safezoneY; w = 0.06159 * safezoneW; h = 0.044 * safezoneH; }; class DescriptionText: Life_RscStructuredText { idc = 60709; text = ""; x = 0.497937 * safezoneW + safezoneX; y = 0.4164 * safezoneH + safezoneY; w = 0.195937 * safezoneW; h = 0.11 * safezoneH; }; class WeightNum: Life_RscText { idc = 60710; text = ""; x = 0.587635 * safezoneW + safezoneX; y = 0.6166 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; colorText[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; sizeEx = 2.7 * 0.02; }; class SellNum: Life_RscText { idc = 60711; text = ""; x = 0.587657 * safezoneW + safezoneX; y = 0.5726 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; colorText[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; sizeEx = 2.7 * 0.02; }; class BuyNum: Life_RscText { idc = 60712; text = ""; x = 0.587654 * safezoneW + safezoneX; y = 0.5308 * safezoneH + safezoneY; w = 0.190781 * safezoneW; h = 0.055 * safezoneH; colorText[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; sizeEx = 2.7 * 0.02; }; }; }; 6. In your dialog folder, open player_inv.hpp and add the following below ButtonSyncData: class marketButton: Life_RscButtonMenu { idc = 60714; onButtonClick = "[] call life_fnc_marketMenu"; text = "$STR_PM_yMarket"; //--- ToDo: Localize; x = 0.598484 * safezoneW + safezoneX; y = 0.66808 * safezoneH + safezoneY; w = 0.0644531 * safezoneW; h = 0.022 * safezoneH; colorText[] = {1,1,1,1}; colorBackground[] = {0,0,0,0.8}; }; 7. Open dialog\MasterHandler.hpp and add the following: #include "market_menu.hpp" 8. Open config_vItems.hpp and add the following class below class cop: //THIS IS NOT A SHOP, IT IS JUST THE LIST OF ITEMS THE MARKET PULLS - IT IS IN ALPHABETICAL ORDER class ymarket { name = "STR_Shops_yMarket"; conditions = ""; items[] = {"apple", "blastingcharge", "boltcutter", "cannabis", "catshark", "catshark_raw", "cement", "cocaine_processed", "cocaine_unprocessed", "coffee", "copper_refined", "copper_unrefined", "defibrillator", "defusekit", "diamond_cut", "diamond_uncut", "donuts", "fuelEmpty", "fuelFull", "glass", "goat", "goat_raw", "goldbar", "hen", "hen_raw", "heroin_processed", "heroin_unprocessed", "iron_refined", "iron_unrefined", "lockpick", "mackerel", "mackerel_raw", "marijuana", "mullet", "mullet_raw", "mushrooms", "oil_processed", "oil_unprocessed", "ornate", "ornate_raw", "peach", "pickaxe", "rabbit", "rabbit_raw", "redgull", "rock", "rooster", "rooster_raw", "salema", "salema_raw", "sand", "salt_refined", "salt_unrefined", "sheep", "sheep_raw", "spikeStrip", "storagebig", "storagesmall", "toolkit", "tbacon", "tuna", "tuna_raw", "turtle_soup", "turtle_raw", "waterBottle"}; }; 9. These scripts introduce a new setting needed on every virtual item you would like on your market display. Which is a small description of the item. If you want to, you can remove it in fn_marketLBChange - but I highly recommend keeping it as filler for the menu (plus a little bonus). Here are a few examples of a few I've used this (don't use these as their weights and prices may be different to yours): class marijuana { variable = "marijuana"; displayName = "STR_Item_Marijuana"; weight = 4; buyPrice = 7000; sellPrice = 5500; illegal = true; edible = -1; icon = "icons\ico_marijuana.paa"; description = "Classic OG kush. Snoop would be proud. Sold at any drug dealer."; }; class redgull { variable = "redgull"; displayName = "STR_Item_RedGull"; weight = 1; buyPrice = 1500; sellPrice = 200; illegal = false; edible = 100; icon = "icons\ico_redgull.paa"; description = "Enery drink that certainly doesn't give you wings. Very high in sugar."; }; class salt_unrefined { variable = "saltUnrefined"; displayName = "STR_Item_Salt"; weight = 5; buyPrice = -1; sellPrice = -1; illegal = false; edible = -1; icon = "icons\ico_saltUnprocessed.paa"; description = "Un-refined Salt. Processed at the Salt Processor. Also gathered from the Tears of the Arma Community."; }; 10. Finally, open your Stringtable.xml and add the following: <Key ID="STR_PM_yMarket"> <Original>Market</Original> </Key> <Key ID="STR_Shops_yMarket"> <Original>Altis Market</Original> </Key> And that's it! All done. SIDE NOTE: Make sure any new items you add to the virtual item config are also added to the market array, otherwise they won't show up!
  7. 3 likes
    SOURCE: http://www.armaholic.com/page.php?id=20465 Fockers Arma3 Scripting Guide Author: Mikie boy Author Website: http://fockers.moonfruit.com Version: 3.0 Short description: This is an old but useful guide from 2013. Chapter 1, 2 and 3 of Fockers Arma3 Scripting Guide Download Link: Fockers_Arma_Scripting_guide_v30.7z Features: The first chapter covers the basics of: Setting up a file, showscripterrors, and window mode Variables, assignment, initialization, and variable types. Init.sqf, interactions between the game world and the scripts. Alignment of code, bracket usage and setting out code. If/else statement, nested if/else statements. While, and both for-loops types. Commands - player, waituntil, getpos, createvehicle, createunit, hint, format, sleep and a few other bits. And a lot of reference on using BIS forums and the Wiki. The second chapter covers the basics of: Part 1: Basic Arrays Selecting elements Subtracting Addition forEach command Part 2: Basic Functions Local and global call Spawn Part 3: Making a basic Patrol function. Few other commands have been thrown in The third chapter covers the basics of: Part 1: Eventhandlers adding removing use of scope and exitwith command example usage and creation of eject and mine functions Part 2: Get and set Variable handle variables Create a driving licence system using eventhandlers and get/set variables to control access to vehicles Few other commands have been thrown in.
  8. 2 likes
    Hi guys, my english is not so good sorry. 1.Go into your database and run this code on your sql console. ALTER TABLE `players` ADD COLUMN `example_level` ENUM('0','1','2','3') NOT NULL DEFAULT '0' COLLATE 'latin1_swedish_ci'; 2.Go into life_server\Functions\MySQL\fn_queryRequest.sqf Now, I will add new level to civilian, you can add new level to other sides. Find this code at "fn_queryRequest.sqf" case civilian: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, civ_licenses, arrested, civ_gear, civ_stats, civ_alive, civ_position, playtime FROM players WHERE pid='%1'",_uid];}; Then, add "example_level" to end. Like this, case civilian: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, civ_licenses, arrested, civ_gear, civ_stats, civ_alive, civ_position, playtime, example_level FROM players WHERE pid='%1'",_uid];}; Our level is 13rd in query command, this is important for us. Go into your "core\session\fn_requestReceived.sqf" and find "case civilian:" case civilian: { life_is_arrested = _this select 7; CONST(life_coplevel, 0); CONST(life_medicLevel, 0); life_houses = _this select (_count - 3); if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 9) select 0); life_thirst = ((_this select 9) select 1); player setDamage ((_this select 9) select 2); }; And add "example_level" under medic_level.I wrote "_this select 13" because "example_level" in 13rd place in my "fn_queryRequest.sqf" If you add your new level to other sides, you must write that to the side of you wrote. Like this, case civilian: { life_is_arrested = _this select 7; CONST(life_coplevel, 0); CONST(life_medicLevel, 0); CONST(life_examplelevel,(_this select 13)); life_houses = _this select (_count - 3); if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then { life_hunger = ((_this select 9) select 0); life_thirst = ((_this select 9) select 1); player setDamage ((_this select 9) select 2); }; Finally you can use your level at other scripts. Example, if ((FETCH_CONST(life_examplelevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then { ["NotWhitelisted",false,true] call BIS_fnc_endMission; sleep 35; };
  9. 2 likes
    infiSTAR_config.sqf /* The following 3 options can be disabled by putting the value to -1. For example "_TGV = -1;" */ /* Terrain Grid Value */ _TGV = -1; /* 50, 25, 12.5 */ /* if set to 50 grass will be very low for better client FPS.. default is 25 ~35 is good performance and grass :) */ /* ViewDistance Value */ _VDV = -1; /* ObjectViewDistance */ _VOV = -1;
  10. 2 likes
    Hello @XtG Community, please open up a ticket on our website and put something in the title that we can find you quickly. We are sorry that you were not able to effectively reach out to us as we are indeed very busy. But the change you need should be just a couple of lines, and we will try to get you an answer on that ticket tomorrow then Yours sincerly, Maverick Applications
  11. 2 likes
    Heres How To Add Smoke Trails To Cessna Difficulty : Easy thanks to @Emma in FN_setupactions.sqf in class civillian add new line and add life_smokeTrail = false; life_smokes = []; life_actions = []; life_actions pushBack (player addAction["Smoke Trail", { life_smokeTrail = true; { private _colour = ["SmokeShellRed", "SmokeShellBlue"] select _forEachIndex; for "_i" from 0 to 5 do { private _veh = objectParent player; private _smoke = _colour createVehicle [random(50),random(50),random(50)]; _smoke attachTo [_veh, _x]; life_smokes pushBack _smoke; }; } forEach [[-5,0.855469,-0.6],[5,0.855469,-0.6]]; },"",0,false,false,"",'!life_smokeTrail && {!isNull objectParent player} && {objectParent player isKindOf "Plane"}']); life_actions pushBack (player addAction["Stop Smoke Trail", { life_smokeTrail = false; { deleteVehicle _x; } forEach life_smokes; },"",0,false,false,"",'life_smokeTrail']); https://gyazo.com/fb79d08065db6baf29cf873eec63a781 Screenshot
  12. 2 likes
    I've uploaded a high quality siren to replace the current version that is included in the Altis Life files, you can edit the siren to your needs there's only a few versions of the different siren modes but you can always chop edit etc. I've also added the mp3 of all the sirens together, just remember to change the timing to match your edit (for the newbies) in your respective files otherwise it will over lap and sound really crappy. Anyway enjoy. Link: https://www.dropbox.com/s/33ub0h7ssal3oth/Rumbler.zip?dl=0
  13. 1 like
    Hello, how I can make skin for vehicle only for specific license? Sorry for my english.
  14. 1 like
  15. 1 like
    Changed the code to: set year=%date:~-4,4% set day=%date:~-10,2% set mnt=%date:~-7,2% set hr=%time:~0,2% set min=%time:~3,2% IF %day% LSS 10 SET day=0%day:~1,1% IF %mnt% LSS 10 SET mnt=0%mnt:~1,1% IF %hr% LSS 10 SET hr=0%hr:~1,1% IF %min% LSS 10 SET min=0%min:~1,1% set backuptime=%day%-%mnt%-%year%-%hr%-%min% echo %backuptime% working fine now
  16. 1 like
    Great post very wonderful info on the server +1
  17. 1 like
    ======================================================= BATCH SERVER START FILE ======================================================= I have made this Batch file to work on Altis Life Running extDB2, Enjoy. Advanced Version for Smart People, Credit too @TrinityNet
  18. 1 like
    Sanctuary Altis 104.128.62.11:2302 https://sanctuaryaltis.com/ ts.sanctuaryaltis.com http://steamcommunity.com/groups/SanctuaryAltis Owners Prophet Owner Server Developer Website Developer Randy Owner Website Developer Web Security/DDoS Protection Hectic Owner Why should you join? Me and fellow owners are just a team of people that love to bring joy to people and have a good experience for playing games. I love playing games and coding it's one of my favorite things to do, and we love it. We just want to give people a great gaming experience and roleplay experience. Server Features infiStar Anti-Hack 24/7 Uptime Mature Staff (18+) Strict (but fun) rules Insanely Active Staff 100% Custom Skins Custom Map Tuning Shop Convoy Side Missions Custom Spawn & ATM Menus Custom Dialogs Custom Mission File (Not Stolen) Crafting Active Development (I have no life) SCREENSHOTS SOON
  19. 1 like
    ********************************************************************************************* Hey Guys, today i want to share my trunk with all of u and how to install it ********************************************************************************************* to start things of here are some information about it: The trunk has 2 new buttons one to take all (as much as possible) one to store all ( as much as possible) it has ha new layout, and yea, it is not the best but yea go with it, design is not my strongest It will look like this: ********************************************************************************************* Tested in versions: 5.0.0 4.4.1 ********************************************************************************************* first we need to Edit the menu so go to dialog/trunk.hpp and replace everythin with my code that done we go to our functions.hpp / functions.h in the root directory nad add unter class vehicle the following: class vehTakeAllItem {}; class vehStoreAllItem {}; so it should look like this next of we go in the directory core/vehicle and create 2 new sqf files the first one: fn_vehStoreAllItem.sqf: and fn_vehTakeAllItem.sqf: so with this done it should work, if i forgot something please let me know below
  20. 1 like
    As far as I can see all the errors and fixes are only for certain people, so updating the main post would be unnecessary. In addition reading through all the pages I cannot find any "fixes" that are shouting out to me, it is mostly just people sending me files back and fourth. What is your problem? Maybe I can help in a 1 on 1 way.
  21. 1 like
    I have tons of textures people can have for nothing (UK cops, civ vehicles, civ clothing), i have run a few servers and created multiple textures that we no longer use. Visit my profile for a link to our site, i will add a section later with a sh** ton of free HQ textures i created over the years. Don't pay people ffs, they are easy to do, spend the time you would getting prices from matey learning how to do them, save yourself money and learn a new skill!
  22. 1 like
    This is a fancy and sneaky way for sale content, plz release some textur if you want to share it or we gonna delet your topic. This is the release & download section. You have 24 hrs for react!
  23. 1 like
    This can be messy. I personally feel the cleanest way to do things is to start with the new framework, and slowly add your custom scripts back in. If you are working on 4.3+, the other way is to follow the commit history on github. https://github.com/AsYetUntitled/Framework/pull/241/files Please keep in mind that the latest release is still 4.4, and 5.0 is still in dev.
  24. 1 like
    No, he's correct. It's very irritating when people quote an entire tutorial. Just tag the person if you want attention.
  25. 1 like
    Hey guys i want to share my Sellall script with you to start of create in the directory core/shops/ a new sqf called "fn_virt_sellAll.sqf and paste the code in #include "..\..\script_macros.hpp" /* File: fn_virt_sell.sqf Author: Bryan "Tonic" Boardwine Description: Sell a virtual item to the store / shop */ private ["_type","_index","_price","_amount","_name"]; if ((lbCurSel 2402) isEqualTo -1) exitWith {}; _type = lbData[2402,(lbCurSel 2402)]; _price = M_CONFIG(getNumber,"VirtualItems",_type,"sellPrice"); if (_price isEqualTo -1) exitWith {}; _amount = ITEM_VALUE(_type); if ((time - life_action_delay) < 0.2) exitWith {hint localize "STR_NOTF_ActionDelay";}; life_action_delay = time; _price = (_price * _amount); _name = M_CONFIG(getText,"VirtualItems",_type,"displayName"); if ([false,_type,_amount] call life_fnc_handleInv) then { hint format [localize "STR_Shop_Virt_SellItem",_amount,(localize _name),[_price] call life_fnc_numberText]; CASH = CASH + _price; [0] call SOCK_fnc_updatePartial; [] call life_fnc_virt_update; }; if (life_shop_type isEqualTo "drugdealer") then { private ["_array","_ind","_val"]; _array = life_shop_npc getVariable ["sellers",[]]; _ind = [getPlayerUID player,_array] call TON_fnc_index; if (!(_ind isEqualTo -1)) then { _val = ((_array select _ind) select 2); _val = _val + _price; _array set[_ind,[getPlayerUID player,profileName,_val]]; life_shop_npc setVariable ["sellers",_array,true]; } else { _array pushBack [getPlayerUID player,profileName,_price]; life_shop_npc setVariable ["sellers",_array,true]; }; }; if (life_shop_type isEqualTo "gold" && (LIFE_SETTINGS(getNumber,"noatm_timer")) > 0) then { [] spawn { life_use_atm = false; sleep ((LIFE_SETTINGS(getNumber,"noatm_timer")) * 60); life_use_atm = true; }; }; [3] call SOCK_fnc_updatePartial; next open in the root directory your functions.h or functions.hpp (depending on version) and add under class Shops { the following: class virt_sellAll {}; it should look like this then: class Shops { file = "core\shops"; class atmMenu {}; class buyClothes {}; class changeClothes {}; class chopShopMenu {}; class chopShopSelection {}; class chopShopSell {}; class clothingFilter {}; class clothingMenu {}; class fuelLBchange {}; class fuelStatOpen {}; class levelCheck {}; class vehicleShop3DPreview {}; class vehicleShopBuy {}; class vehicleShopEnd3DPreview {}; class vehicleShopInit3DPreview {}; class vehicleShopLBChange {}; class vehicleShopMenu {}; class virt_buy {}; class virt_menu {}; class virt_sellAll {}; class virt_sell {}; class virt_update {}; class weaponShopAccs {}; class weaponShopBuySell {}; class weaponShopFilter {}; class weaponShopMags {}; class weaponShopMenu {}; class weaponShopSelection {}; }; next of we have to edit the sell menu(add the new button) therefor open dialog/shop_items.hpp and add a button like this: class ButtonRemoveAllG: Life_RscButtonMenu { idc = -1; text = "Sell. All"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5}; onButtonClick = "[] call Life_fnc_virt_sellAll;"; x = 0.592716 * safezoneW + safezoneX; y = 0.71 * safezoneH + safezoneY; w = 0.103125 * safezoneW; h = 0.033 * safezoneH; }; if this is done the sell all button should work in markets like Altis market or the mission sellpoints for copper iron etc.
  26. 1 like
    @immortalchaos Please just read previous comments next time, someone may of asked the same question :))
  27. 1 like
    If you can describe your issue and any logs we are happy to help.
  28. 1 like
    I like your idea, and when I get home from work I will play around with it and let you know. I do want to mention that if you ask really nicely, @Maverick Applications may offer some feedback on the concept.
  29. 1 like
    There is literally a category for advertising, and still, it somehow ends up in the wrong place. Anyways, moved for obvious reasons, however i could only assume it was an English server.
  30. 1 like
  31. 1 like
    Works like a charm, appreciate the help. Issue has been resolved thanks to @XtG Community.
  32. 1 like
    yea i dont have it with the finetuning of menus sorry for that :3
  33. 1 like
    Where are the tanks ?
  34. 1 like
  35. 1 like
    download one off the github https://github.com/AsYetUntitled/Framework/releases
  36. 1 like
    Update to a supported build or don't use a 3 year old a3l mission...
  37. 1 like
    Thank me later. Over 1.1gb Worth. PSD's are included. https://drive.google.com/open?id=0BziAKqoq7c6DejJvMnJOcl95S2s
  38. 1 like
  39. 1 like
    Thanks for playing on the server, I'm glad you had fun! Hope to see you back on sometime soon! The shipwrecks script version we currently run is from "Maverick Applications", A lot of servers now use them so its nothing special anymore. There are other public versions released and if I'm not mistaken i have both public 3.1.4.8 shipwrecks and Ryans old shipwrecks on an old hard drive. I could use them but Maverick's one i like better.
  40. 1 like
    Yes, It Is Happening On My Server Also. Thanks,
  41. 1 like
    I only played for a bit but I had a ton of fun! by the way, is the shipwrights script public?
  42. 1 like
    Damn spyeye that's a global ban, better stop hacking
  43. 1 like
    Uninstall InfiSTAR, problem solved
  44. 1 like
    I have collected some Script Releases from the old Forum wich I can't find here. I only printed the Website in Reading View and basicView with FreePFD. I want to share this, maybe someone is bored and want to get this old stuff working. I am interested on the wantetbased speedradar and I will have a look on it in the next few days. [HOW TO] Molotov Cocktails [HOW TO] Watermark your server [How To]Alcohol with multiple item processing,Drunk Effects, Passouts, and Police Breathalyzing [HowTo] Have Sex with a hooker [HOWTO] midgetgrimm's alcohol system in Altis Life 4.0.0 [HOWTO] Persistent Vehicle Inventory [Script] ShipWreck's by Ryan [Script] Temporary Marriage [Tutorial] Fitness center which energizes [Tutorial] Stable Paintball Script [TUTORIAL] Wasted Death Screen Radar Script Robbing the ATM's In Altis Life Simple Organ Theft with Black Market Sales Speed radar cam (yes another, but different) Speedcontrolscript Give Credit to the author! ALRPG_ressource.rar