Welcome to ArmaServicesNET Police Cars Framework installation guide. Please follow these simple steps to avoid any errors while installing this module:

Installation

Step 1. Inside of the archive that you downloaded from your cp, you’ll find two folders: “Server” and “Client”, drag “asn_d3sFrameworkCfg.hpp”, that you’ll find inside your client folder, inside of your “config” folder in your mission root (missionname.island)

Step 2. Edit your description.ext and after ‘ #include “config\Config_Master.hpp” ‘ add ‘ #include “config\asn_d3sFrameworkCfg.hpp” ‘

Step 3. Open your ‘ fn_keyHandler.sqf ‘ inside your ‘core\functions’ folder of your mission root, replace

case 33: {
        … };with

case 33: { // F key, with ctrl+F you activate the sirens and with alt+F you switch through them
        if (_ctrlKey && (vehicle player != player) && !_alt) then {
           [] spawn asn_d3sFramework_ToggleSirens;
        };
        if (_alt) then {
            [] spawn asn_d3sFramework_SwitchSirens;
        };

    };

Step 4. drag the asn_d3sframework.pbo from the server folder to your @life_server\addons folder in your server root

Step 5. Add “F(asn_d3sFrameworkSay3d,CLIENT)” inside your CfgRemoteExec.hpp just below “F(TON_fnc_player_query,CLIENT)”

Step 6. If you’d like to use the sounds included with the script add

class blop
{
    name        = “blop”;
    sound[] = { “\sounds\beep2.wss”, 1, 1, 1};
    titles[]    = { 0, “” };
};
class sirenpolice1
{
    name        = “sirenpolice1”;
    sound[] = { “\sounds\police\wail.wss”, 1, 1};
    titles[]    = { 0, “” };
};
class sirenpolice2
{
    name        = “sirenpolice2”;
    sound[] = { “\sounds\police\yelp.wss”, 1, 1};
    titles[]    = { 0, “” };
};
class sirenpolice3
{
    name        = “sirenpolice3”;
    sound[] = { “\sounds\police\priority.wss”, 1, 1};
    titles[]    = { 0, “” };
};
class sirenpolice4
{
    name        = “sirenpolice4”;
    sound[] = { “\sounds\police\hilo.wss”, 1, 1};
    titles[]    = { 0, “” };
};
class hornpolice
{
    name        = “hornpolice”;
    sound[] = { “\sounds\police\horn.wss”, 1, 1};
    titles[]    = { 0, “” };

};

inside your CfgSounds in your description.ext and drag the content of client >> sounds inside of your sounds folder in your mission root

Step 7. (Optional) If you want to access a single siren just by pressing a key add “1 spawn asn_d3sFrameworkSirensKeys;” inside of your fn_keyhandler like this : “case 2: { 1 spawn asn_d3sFrameworkSirensKeys; }; ” and change 2 with the key id you’d like to use, it obviously mustn’t be already in use, otherwise you’ll get an error, change the 1 with the siren id you configured inside of asn_d3sFrameworkCfg.hpp .

Additional Information
You can configure the script inside asn_d3sFrameworkCfg.hpp
Register New Account
Reset Password