local render = { }
function bindTheKeys2(player, key, stats)
if (stats == "down") then
render[player] = setTimer(function(player)
local x, y, z, rx, ry, rz = getElementAttachedOffsets (car1)
attachElements ( car1, vehicle[player], x, y, z, rx, ry, rz+1)
end, 50, 0, player)
elseif (stats == "up") and (isTimer(render[player])) then
killTimer(render[player])
render[player] == nil
end
end
function bindTheKeysd(player, commandName)
bindKey(player, "F2", "both", bindTheKeys2)
end
addCommandHandler("bindme", bindTheKeysd)