Bug plantation cocaine et marijuana

Bonjour,

Je suis actuellement en train de faire le mapping d’un serveur Altis Life, et sur les champs de cocaine et de marijuana rien n’apparait, impossible de récoler si vous avez une solution, je suis preneur.

Cordialement,

Envoies ton “fn_gather.sqf”, et donne que tu as donné au point de récolte coc et weed.

rien n’apparait

juste au cas ou,

tu as essayé la touche windows ? :slight_smile:

Yop , moi , j’ai le meme probleme que lui , voici mon fn_gather.sqf :

/*
File: fn_gather.sqf
Author: Bryan “Tonic” Boardwine

Description:
Main functionality for gathering.
*/
private["_gather","_itemWeight","_diff","_itemName","_val","_resourceZones","_zone"];
_resourceZones = [“apple_1”,“apple_2”,“apple_3”,“apple_4”,“peaches_1”,“peaches_2”,“peaches_3”,“peaches_4”,“heroin_1”,“cocaine_1”,“weed_1”];
_zone = “”;

if(life_action_inUse) exitWith {}; //Action is in use, exit to prevent spamming.

//Find out what zone we’re near
{
if(player distance (getMarkerPos _x) < 30) exitWith {_zone = _x;};
} foreach _resourceZones;

if(_zone == “”) exitWith {
life_action_inUse = false;
};

//Get the resource that will be gathered from the zone name…
switch(true) do {
case (_zone in [“apple_1”,“apple_2”,“apple_3”,“apple_4”]): {_gather = “apple”; _val = 3;};
case (_zone in [“peaches_1”,“peaches_2”,“peaches_3”,“peaches_4”]): {_gather = “peach”; _val = 3;};
case (_zone in [“heroin_1”]): {_gather = “heroinu”; _val = 1;};
case (_zone in [“cocaine_1”]): {_gather = “cocaine”; _val = 1;};
case (_zone in [“weed_1”]): {_gather = “cannabis”; _val = 1;};
default {""};
};
//gather check??
if(vehicle player != player) exitWith {};

_diff = [_gather,_val,life_carryWeight,life_maxWeight] call life_fnc_calWeightDiff;
if(_diff == 0) exitWith {hint localize “STR_NOTF_InvFull”};
life_action_inUse = true;
for “_i” from 0 to 2 do
{
player playMove “AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon”;
waitUntil{animationState player != “AinvPercMstpSnonWnonDnon_Putdown_AmovPercMstpSnonWnonDnon”;};
sleep 2.5;
};

if(([true,_gather,_diff] call life_fnc_handleInv)) then
{
_itemName = [([_gather,0] call life_fnc_varHandle)] call life_fnc_varToStr;
titleText[format[localize “STR_NOTF_Gather_Success”,_itemName,_diff],“PLAIN”];
};

life_action_inUse = false;

Voila , merci de l’aide!

tes zones dans l’editeur tu les a bien appelées

heroin_1  
cocaine_1  
weed_1```

?