English SHOWING LICENSE TO OTHER PLAYERS (COPS, MEDICS, EAST,CIV)

  • Auteur de la discussion Auteur de la discussion Rene Lerchberg
  • Date de début Date de début
24/1/20
5
13
250
dreamlifegames.com
107410_screenshots_20200628231612_1 (1).jpg
107410_screenshots_20200628231534_1 (2).jpg

Hi everyone,

Today I am going to release a small script to show licenses to other players. You can easily add other licenses like Trucking License and so on.
But first lets get Started.
The Picture and the textes on the Picture are in German if u want to change the picture in the text go .license.sqf and edit this line by
Code:
Développer Réduire Copier
_rang = Showing License name
_marke = Picturename in icons folder without data end name just dataname so example from drivinglicense :
dataname is fuehrerschein.paa in icons folder so just hit in:
_marke = "fuehrerschein";
_org = is the certificate text under the License name

INSTALLATION :

FIRST DOWNLOAD THE FILES ATTACHED TO THIS POST

Place the .sqf files into your core/RLS
If you dont have an RLS Folder in your Core just create one

Drop the .paa files into your icons folder in your mission root

2. go into your CfgRemoteExec.hpp in your mission root.
Code:
Développer Réduire Copier
F(life_fnc_scheinzeigen,CLIENT)

3. Now we are going to whitelist the functions in our Functions.hpp
Code:
Développer Réduire Copier
class license_show {
        file = "core\RLS\licenses_show";
        class scheinzeigen {};
        class gunlicense {};
        class drivinglicense {};
};

4. Now we set up our AddActions. Open your fn_setupActions.sqf in the Core folder and paste in case civilian this code
Code:
Développer Réduire Copier
//gun
life_actions = life_actions + [player addAction["Show your Gun License",life_fnc_gunlicense ,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man" && license_civ_gun']];
//driving
life_actions = life_actions + [player addAction["Show your Driving License",life_fnc_drivinglicense,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man" && license_civ_driver']];

Have fun with it :)
Its my first TUTORIAL here and in english as well so please be kind to me :D

You have question ? Feel free to ask :)

Best Regards,
Rene Lerchberg
 

Fichiers joints

Dernière édition par un modérateur:
Activité
Pour l'instant, il n'y a personne ici