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

        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.

Search the Community: Showing results for tags 'civilian'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools


  • Community Calendar


  • Articles

Found 1 result

  1. Allright so this is a tutorial on how to add a option to the cop interaction menu (windows-key on restrained civ) where they get a button to revoke said civilians drivers license! Core script credit: @Repentz Difficulty: Easy Note: When I say root I mean your mission folder (AltisLife.Altis or TanoaLife.Tanoa). ______________________________________________________________________________________________________________________________________________________________________________________________ Step 1: Create a file called fn_revokeDriverLicense.sqf in root -> Core -> Actions and paste this in: /* File: fn_revokeDriverLicense.sqf */ private["_unit"]; params [ ["_unit", ObjNull,[ObjNull]] ]; if(isNull _unit) exitWith {}; [0,format["%1 has revoked %2's Driver License.",name player, name _unit]] remoteExecCall ["life_fnc_broadcast",west]; [4] remoteExecCall ["life_fnc_removeLicenses",_unit]; Step 2: Go to root -> core -> cop and open the file: fn_copInteractionMenu.sqf Find the list of #define Btn1 37450 etc. and paste this in the middle of the last button and the Title: #define Btn9 37458 It should look like this: #define Btn1 37450 #define Btn2 37451 #define Btn3 37452 #define Btn4 37453 #define Btn5 37454 #define Btn6 37455 #define Btn7 37456 #define Btn8 37457 #define Btn9 37458 #define Title 37401 Scroll down a bit and find this: _display = findDisplay 37400; _Btn1 = _display displayCtrl Btn1; _Btn2 = _display displayCtrl Btn2; _Btn3 = _display displayCtrl Btn3; _Btn4 = _display displayCtrl Btn4; _Btn5 = _display displayCtrl Btn5; _Btn6 = _display displayCtrl Btn6; _Btn7 = _display displayCtrl Btn7; _Btn8 = _display displayCtrl Btn8; life_pInact_curTarget = _curTarget; and paste this below the next to last row: _Btn9 = _display displayCtrl Btn9; Scroll down a bit more to this: //SeizeWeapons Button _Btn8 ctrlSetText localize "STR_pInAct_Seize"; _Btn8 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_seizePlayerAction; closeDialog 0;"; Below it you want to paste this: //Revoke License Button _Btn9 ctrlSetText localize "STR_pInAct_RevokeLicense"; _Btn9 buttonSetAction "[life_pInact_curTarget] spawn life_fnc_revokeDriverLicense; closeDialog 0;"; Step 3: Go to root -> Core -> Civilian and open fn_removeLicenses.sqf Under the section called Case 3 paste this in: // Revoking drivers license case 4: { missionNamespace setVariable [LICENSE_VARNAME("driver", "civ"), false]; hint localize "STR_Civ_LicenseRevoked"; }; Step 4: Go to root -> dialog and open pInteraction.hpp Find this: class ButtonEight: Life_RscButtonMenu { idc = 37457; 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}; text = ""; sizeEx = 0.025; x = BGX + 0.03; y = BGY + 0.42; w = 0.4; h = 0.038; }; And paste this below it: class ButtonNine: Life_RscButtonMenu { idc = 37458; 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}; text = ""; sizeEx = 0.025; x = BGX + 0.03; y = BGY + 0.47; w = 0.4; h = 0.038; }; Step 5: Go to your mission root and open Functions.hpp and paste this in the Actions section: class revokeDriverLicense{}; Step 6: Go to your mission root and open CfgRemoteExec.hpp and paste this at the bottom of Client Only Functions: F(life_fnc_revokeDriverLicense,CLIENT) Step 7 (Last step!): Go to your mission root and open your stringtable and add this: <Key ID="STR_Civ_LicenseRevoked"> <Original>You have lost your drivers license.</Original> </Key> And we're done! Now if you restrain a civilian with as a cop, you'll have another button in the interaction menu that removes the restrained civilian's drivers license!