With the function Matrix is simpler.
 
	e.x:
 
objs = {}
function objE(player)
	if objs[player] then
		destroyElement(objs[player])
	end
	local xb,yb,zb = getElementPosition(player)
	local rxb,ryb,rzb = getElementRotation(player)
	local matrixs = (Matrix.create(xb,yb,zb, rxb,ryb,rzb))
	local forward = (Matrix.getForward(matrixs) * 2)
	local positions = (Matrix.getPosition(matrixs) + forward)
	objs[player] = createObject(625, positions)
end
addCommandHandler("ob",objE)
	Just out of curiosity, you want to do a decoration system?