Jump to content
  • 0

Hemp farming


Emerghency

Question

6 answers to this question

Recommended Posts

  • 0
3 hours ago, JohnnyLube said:

How did you fix this? I am having the same issue? Come on dude share the knowledge, knowledge is power

, feel the power .............. and all that other hippy shit that goes on :-)

its for 1.0.5.1 ? try to not use setdamage on the script

Spoiler

/*
put together for DayZ Epoch
Credits to Shogun338 from Insurrection gaming
modified for separate "gather weed" script
*/

private ["_gearmenu","_playerPos","_nearWeed","_weed","_objectID","_objectUID"];
_playerPos = getPosATL player;
_hempqty = {_x == "ItemKiloHemp"} count magazines player;
_nearWeed = count nearestObjects [_playerPos, ["fiberplant"], 4] > 0;
_weed = nearestObject [player, "fiberplant"];

if !(_nearWeed) exitWith {
	cutText [format["Needs be near of a FiberPlant."], "PLAIN DOWN"];
};
if (_hempqty > 2) exitWith { 
    cutText [format["WARNING: %1, YOure Full of Drugs survivor", name player], "PLAIN DOWN"];
};
if (dayz_combat == 1)  exitWith  { 
    cutText [format["IN COMBAT."], "PLAIN DOWN"];
} else {
	disableSerialization;
	_gearmenu = FindDisplay 106;
	_gearmenu CloseDisplay 106;
	player playActionNow "Medic";
	r_interrupt = false;
	sleep 6;
	_objectID = _weed getVariable["ObjectID","0"];
	_objectUID = _weed getVariable["ObjectUID","0"];
	deleteVehicle _weed;
	[_objectID,_objectUID] call server_deleteObj;
	deleteVehicle _weed;
	player addMagazine "ItemKiloHemp";
	sleep 2;
	cutText [format["NICE LETS SMOKE AND SELL"], "PLAIN DOWN"];	
};

 

 

Link to comment
Share on other sites

  • 0
8 hours ago, juandayz said:

its for 1.0.5.1 ? try to not use setdamage on the script

  Hide contents


/*
put together for DayZ Epoch
Credits to Shogun338 from Insurrection gaming
modified for separate "gather weed" script
*/

private ["_gearmenu","_playerPos","_nearWeed","_weed","_objectID","_objectUID"];
_playerPos = getPosATL player;
_hempqty = {_x == "ItemKiloHemp"} count magazines player;
_nearWeed = count nearestObjects [_playerPos, ["fiberplant"], 4] > 0;
_weed = nearestObject [player, "fiberplant"];

if !(_nearWeed) exitWith {
	cutText [format["Needs be near of a FiberPlant."], "PLAIN DOWN"];
};
if (_hempqty > 2) exitWith { 
    cutText [format["WARNING: %1, YOure Full of Drugs survivor", name player], "PLAIN DOWN"];
};
if (dayz_combat == 1)  exitWith  { 
    cutText [format["IN COMBAT."], "PLAIN DOWN"];
} else {
	disableSerialization;
	_gearmenu = FindDisplay 106;
	_gearmenu CloseDisplay 106;
	player playActionNow "Medic";
	r_interrupt = false;
	sleep 6;
	_objectID = _weed getVariable["ObjectID","0"];
	_objectUID = _weed getVariable["ObjectUID","0"];
	deleteVehicle _weed;
	[_objectID,_objectUID] call server_deleteObj;
	deleteVehicle _weed;
	player addMagazine "ItemKiloHemp";
	sleep 2;
	cutText [format["NICE LETS SMOKE AND SELL"], "PLAIN DOWN"];	
};

 

 

You can't use server_deleteObj client side

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...