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:
_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:
F(life_fnc_scheinzeigen,CLIENT)
3. Now we are going to whitelist the functions in our Functions.hpp
Code:
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:
//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
You have question ? Feel free to ask
Best Regards,
Rene Lerchberg
Fichiers joints
Dernière édition par un modérateur: