Welcome to this tutorial that will allow you to add invisible backpacks.
This tutorial is a response to an help request from
Skyrise.
This tutorial is a response to an help request from
![Skyrise](/data/avatars/s/0/237.jpg?1643575128)
Go in your mission/core/functions/fn_playerSkins.sqf, and search it :
Code:
case west {
(so that the cops have an invisible bag)
and/or
and/or
Code:
case independent {
(so that medics have an invisible bag)
Then, below the "case" you wanted, add this :
Code:
if ((backpack player) == "ClassnameBackpack") then {
[player] remoteExecCall ["life_fnc_setbackpacktexture",0];
};
Create a file fn_setBackpackTexture.sqf into your core/civilian, and add this in the file :
Code:
_player = param [0,objNull,[objNull]];
if (isNull _player) exitWith {};
(unitbackpack _player) hideObject true;
And then, in Functions.hpp, find the "Civilian" class, and under :
Code:
file = "core\civilian";
Code:
class setBackpackTexture {};
And finally, look for this in the CfgRemoteExec.hpp :
Code:
/* Functions for everyone */
Code:
F(life_fnc_setbackpacktexture,ANYONE)
There you go, quick as lightning !
Sincerely,
Forum Manager Mathis