From 03521efc8a895e9ba2a0b7c4adc0ef718789cc1d Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 24 Nov 2013 15:44:31 -0600 Subject: [PATCH] working return key name --- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index fc658a09b..3ef3ee449 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -243,7 +243,7 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu _oldOwner = (_ownerID == dayz_playerUID); if(locked _cursorTarget) then { if(_hasKey or _oldOwner) then { - _Unlock = player addAction [format["Unlock %1",_text], "\z\addons\dayz_code\actions\unlock_veh.sqf",[_cursorTarget,(_temp_keys_names select _ownerID)], 2, true, true, "", ""]; + _Unlock = player addAction [format["Unlock %1",_text], "\z\addons\dayz_code\actions\unlock_veh.sqf",[_cursorTarget,(_temp_keys_names select (parseNumber _ownerID))], 2, true, true, "", ""]; s_player_lockunlock set [count s_player_lockunlock,_Unlock]; s_player_lockUnlock_crtl = 1; } else {